lilijreey / bwapi

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

Update BWAPI4 Example Projects #435

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Im geting error compiling BWAPI, its all related to ExampleTournamentModule :

1>Linking...
1>   Creating library Release\ExampleTournamentModule.lib and object 
Release\ExampleTournamentModule.exp
1>Dll.obj : error LNK2001: unresolved external symbol "void __cdecl 
BWAPI::BWAPI_init(void)" (?BWAPI_init@BWAPI@@YAXXZ)
1>Dll.obj : error LNK2001: unresolved external symbol "public: virtual 
__thiscall BWAPI::AIModule::~AIModule(void)" (??1AIModule@BWAPI@@UAE@XZ)
1>Dll.obj : error LNK2001: unresolved external symbol "public: __thiscall 
BWAPI::AIModule::AIModule(void)" (??0AIModule@BWAPI@@QAE@XZ)
1>Dll.obj : error LNK2001: unresolved external symbol "public: virtual 
__thiscall BWAPI::TournamentModule::~TournamentModule(void)" 
(??1TournamentModule@BWAPI@@UAE@XZ)
1>Dll.obj : error LNK2001: unresolved external symbol "public: __thiscall 
BWAPI::TournamentModule::TournamentModule(void)" 
(??0TournamentModule@BWAPI@@QAE@XZ)
1>C:\Users\thiago\Desktop\projeto\BWAPI 
3.7.2\Release\ExampleTournamentModule.dll : fatal error LNK1120: 5 unresolved 
externals
1>Build log was saved at "file://c:\Users\thiago\Desktop\projeto\BWAPI 
3.7.2\ExampleTournamentModule\Release\BuildLog.htm"
1>ExampleTournamentModule - 6 error(s), 0 warning(s)

I'm using vc++ 2008 express v9.0.30729.1 SP1 at windows7 professional 32bit, 
ive followed all the steps in the readme, i didnt forgot to set the build to 
release, and all the four dlls are in some directory within the Path variable.

Ive searched the internet around but found nothing, anyone have any idea how 
can i solve this problem ?

Original issue reported on code.google.com by thiagovd...@gmail.com on 10 Apr 2012 at 8:08

GoogleCodeExporter commented 9 years ago
Sorry about this. The error is not important if you are writing a Tournament 
module, but if you want to fix it then open the project properties and go to 
Linker -> Input.

Under Additional Dependencies, add ..\lib\BWAPI.lib for the RELEASE build and 
..\lib\BWAPId.lib for the DEBUG build.

The problem will be resolved and the project will compile as it was meant to.
If you don't specifically need a Tournament Module, then you can safely unload 
it.

The tournament module is used to control the flow of tournament matches that 
use BWAPI (for example, AIIDE2012, CIG2012, SSCAI2012). In these tournaments, 
BWAPI will load one common tournament module created by those managing the 
tournament, so you cannot submit your own tournament module.

But thanks for reminding me, I haven't updated the branch Example Projects to 
VS2010.

Original comment by AHeinerm on 10 Apr 2012 at 8:51

GoogleCodeExporter commented 9 years ago
I meant not important if you are NOT writing a tournament module. *

Original comment by AHeinerm on 10 Apr 2012 at 8:52

GoogleCodeExporter commented 9 years ago
thanks, problem solved ^^

Original comment by thiagovd...@gmail.com on 17 Apr 2012 at 6:51

GoogleCodeExporter commented 9 years ago
r4107 updated example projects.

Original comment by AHeinerm on 6 May 2012 at 12:54