I'm trying to compile the ObjectsTest files in the examples folder, I get five lines w/ these two errors:
1>c:\forextester\examples\strategies\c++\strategyinterfaceunit.h(1466) : error C3861: 'malloc': identifier not found
1>c:\forextester\examples\strategies\c++\strategyinterfaceunit.h(1473) : error C3861: 'free': identifier not found
are free and malloc your functions or part of C++
using ms visual c++ express 2008
Thanks
Bugs
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
Re: Bugs
dfstone32 wrote:I'm trying to compile the ObjectsTest files in the examples folder, I get five lines w/ these two errors:
1>c:\forextester\examples\strategies\c++\strategyinterfaceunit.h(1466) : error C3861: 'malloc': identifier not found
1>c:\forextester\examples\strategies\c++\strategyinterfaceunit.h(1473) : error C3861: 'free': identifier not found
are free and malloc your functions or part of C++
using ms visual c++ express 2008
Thanks
These functions are part of C++
Hasta la vista
Mike
Mike
-
- Posts: 5
- Joined: Thu Jun 12, 2008 12:28 pm
Some stuff I had to do to make it work
Thanks for the quick reply. After doing a few googles in visual c++ 2008 I added
#include <stdlib.h>
#include <malloc.h>
to stdafx.h (under #pragma) that fixed the above errors
then i got two other errors: error LNK1169: & Error LNK2005
under Project > ObjectTest Properties > Configuration Properties > linker > command line properties I added:
/FORCE
to the additional properties box and it built the dll w/ 9 warnings, it worked assumming it is only supposed to draw lines and text on the chart.
References:
http://msdn.microsoft.com/en-us/library/6ewkz86d(VS.71).aspx
http://msdn.microsoft.com/en-us/library/70abkas3(VS.80).aspx
thks again
#include <stdlib.h>
#include <malloc.h>
to stdafx.h (under #pragma) that fixed the above errors
then i got two other errors: error LNK1169: & Error LNK2005
under Project > ObjectTest Properties > Configuration Properties > linker > command line properties I added:
/FORCE
to the additional properties box and it built the dll w/ 9 warnings, it worked assumming it is only supposed to draw lines and text on the chart.
References:
http://msdn.microsoft.com/en-us/library/6ewkz86d(VS.71).aspx
http://msdn.microsoft.com/en-us/library/70abkas3(VS.80).aspx
thks again
Who is online
Users browsing this forum: No registered users and 32 guests