zloop1982 / bwapi

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

Try compiling ExampleAIModule #462

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm using this tutorial: http://eis.ucsc.edu/StarCraftBWAPI
2. Trying compiling the bot
3. Using ExampleProjects.sln in BWAPI folder

What is the expected output? What do you see instead?
1>------ Build started: Project: ExampleAIModule, Configuration: Release Win32 
------
1>  Dll.cpp
1>  ExampleAIModule.cpp
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>     Creating library C:\Program Files 
(x86)\StarCraft\BWAPI\Release\ExampleAIModule.lib and object C:\Program Files 
(x86)\StarCraft\BWAPI\Release\ExampleAIModule.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; 
use /NODEFAULTLIB:library
1>BWTA.lib(extract_polygons.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01
@@Z)
1>BWTA.lib(thread.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01
@@Z)
1>BWTA.lib(all_files.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01
@@Z)
1>BWTA.lib(BaseLocationImpl.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01
@@Z)

...

1>BWTA.lib(all_files.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) bool __cdecl std::operator!=<char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &)" 
(__imp_??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@
DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z)
1>BWTA.lib(all_files.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) class std::basic_istream<char,struct 
std::char_traits<char> > & __cdecl std::operator>><char,struct 
std::char_traits<char>,class std::allocator<char> >(class 
std::basic_istream<char,struct std::char_traits<char> > &,class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> &)" 
(__imp_??$?5DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_istream@D
U?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$alloc
ator@D@2@@0@@Z)
1>C:\Program Files (x86)\StarCraft\BWAPI\Release\ExampleAIModule.dll : fatal 
error LNK1120: 51 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

What version of the product are you using? On what operating system?
3.7.4

Please provide any additional information below.

Original issue reported on code.google.com by regis.cl...@gmail.com on 20 Sep 2012 at 10:57

GoogleCodeExporter commented 9 years ago
I'm using Visual C++ Express Edition 2010. I change for 2008 version and now 
compile correctly!

Now, lets code my bot o/

Original comment by regis.cl...@gmail.com on 20 Sep 2012 at 12:26

GoogleCodeExporter commented 9 years ago
Will mark as invalid. BWAPI 3.x uses VC++ 2008 Express, while the BWAPI4 branch 
uses VC++ 2010 Express. It is a late upgrade but it certainly is worthwhile for 
all the C++11 features that BWAPI4 will be taking advantage of.

Original comment by AHeinerm on 22 Sep 2012 at 3:06