klerd / bwta

Automatically exported from code.google.com/p/bwta
GNU Lesser General Public License v3.0
0 stars 0 forks source link

BWTA Polygon and BWTA GetNearestTile library Problem #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Building the solution using Bwapi 2.7 and BWTA 1.7

What is the expected output? What do you see instead?
I am using the GetNearestTile
(BWAPI::TilePosition,std::set<BWAPI::TilePostion> &Target) and 
BWTA::Polygon. I expect to see a succesfull build but I get two unresolved 
symbol while the program is linking.(I added all new libraries to my 
solution).

What version of the product are you using? On what operating system?
Bwapi 2.7, BWTA 1.7 Windows 7 64bit

Please provide any additional information below.

The errors are

3>Link:
3>ExampleAIModule.obj : error LNK2019: unresolved external symbol "struct 
std::pair<class BWAPI::TilePosition,double> __cdecl 
BWTA::getNearestTilePosition(class BWAPI::TilePosition,class 
std::set<class BWAPI::TilePosition,struct std::less<class 
BWAPI::TilePosition>,class std::allocator<class BWAPI::TilePosition> > &)" 
(?getNearestTilePosition@BWTA@@YA?AU?
$pair@VTilePosition@BWAPI@@N@std@@VTilePosition@BWAPI@@AAV?
$set@VTilePosition@BWAPI@@U?$less@VTilePosition@BWAPI@@@std@@V?
$allocator@VTilePosition@BWAPI@@@4@@3@@Z) referenced in function __catch$?
onFrame@ExampleAIModule@@UAEXXZ$0

3>ExampleAIModule.obj : error LNK2019: unresolved external symbol "public: 
__thiscall BWTA::Polygon::Polygon(class BWTA::Polygon const &)" (??
0Polygon@BWTA@@QAE@ABV01@@Z) referenced in function "public: virtual void 
__thiscall ExampleAIModule::onFrame(void)" (?
onFrame@ExampleAIModule@@UAEXXZ)
3>D:\Program Files (x86)
\Starcraft\Ourproxybot\src\RugAIModule\trunk\Debug\RugAIModule.dll : fatal 
error LNK1120: 2 unresolved externals
3>
3>Build FAILED

Original issue reported on code.google.com by shantia....@gmail.com on 26 May 2010 at 12:58

GoogleCodeExporter commented 8 years ago
Looks like a linker error. Make sure you're linking to BWTA.lib. If this 
problem still exists with the latest versions of BWAPI and BWTA please make a 
new issue for it.

Original comment by lowerlo...@gmail.com on 17 Nov 2010 at 4:47