Bugs

How to create strategies and indicators
Message
Author
dfstone32
Posts: 5
Joined: Thu Jun 12, 2008 12:28 pm

Bugs

#1 Postby dfstone32 » Fri Oct 24, 2008 2:29 pm

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

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

Re: Bugs

#2 Postby Terranin » Fri Oct 24, 2008 2:59 pm

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

dfstone32
Posts: 5
Joined: Thu Jun 12, 2008 12:28 pm

Some stuff I had to do to make it work

#3 Postby dfstone32 » Fri Oct 24, 2008 3:46 pm

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


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 32 guests