| View previous topic :: View next topic |
| Author |
Message |
mspen
Joined: 10 Sep 2008 Posts: 8 Location: San Diego
|
Posted: Thu Aug 25, 2011 10:04 pm Post subject: Error in ScriptInterfaceUnit.h version 1.2a |
|
|
It appears that there is an error in the newest ScriptInterfaceUnit.h:
1>------ Build started: Project: Trades, Configuration: Release Win32 ------
1>Compiling...
1>Trades.cpp
1>c:\devs\c++\forextester2\scripts\trades\ScriptInterfaceUnit.h(1805) : error C2572: 'ObjectsDeleteAll' : redefinition of default parameter : parameter 1
1> c:\devs\c++\forextester2\scripts\trades\ScriptInterfaceUnit.h(754) : see declaration of 'ObjectsDeleteAll'
1>Build log was saved at "file://c:\Devs\C++\ForexTester2\scripts\Trades\Release\BuildLog.htm"
1>Trades - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I believe it can be fixed with the following change. I think the default should only be on the prototype:
< void ObjectsDeleteAll(int window = 0, TObjectType ObjType)
---
> void ObjectsDeleteAll(int window, TObjectType ObjType) |
|
| Back to top |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
|
| Back to top |
|
 |
mspen
Joined: 10 Sep 2008 Posts: 8 Location: San Diego
|
Posted: Fri Aug 26, 2011 8:25 pm Post subject: |
|
|
Thanks.
It appears that StrategyInterface 1.9 has the same difficulty. I was only building a script yesterday. |
|
| Back to top |
|
 |
|