codebackup / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

setting _SECURE_SCL=0 for using external library #424

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Good evening,

I am trying to use the library SMILE [http://genie.sis.pitt.edu/] for bayesian 
networks with the BWAPI. They ask to set _SECURE_SCL=0 in order to make use of 
the library. Everytime I define it and load the .dll  and open the map the 
Starcraft stops working. Does defining it cause any known conflict with the 
BWAPI?

Original issue reported on code.google.com by ricardo....@gmail.com on 13 Dec 2011 at 2:23

GoogleCodeExporter commented 9 years ago
According to documentation, _SECURE_SCL is enabled by default, and you are 
disabling it. There is probably an issue with the format or usage of stl 
containers (enabled vs disabled). BWAPI most commonly returns references to the 
std::set container, which is affected by _SECURE_SCL.

The problem will eventually be fixed for BWAPI when we create a new custom set 
container for BWAPI 4.0 (discussed on IRC), so we probably won't make any other 
changes unless it is compatible with both states.

It seems you must either compile both projects with _SECURE_SCL enabled, or 
both with _SECURE_SCL disabled.

Original comment by AHeinerm on 13 Dec 2011 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 27 Dec 2011 at 2:00