codebackup / bwapi

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

ExampleAIModule throws LNK4098 warning #449

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download BWAPI 3.4.7
2. Open ExampleAIModule with Visual Studio 2008 Pro (SP1)
3. Build

What is the expected output? What do you see instead?
Not to see any linker errors or warning

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

Please provide any additional information below.

LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; 
use /NODEFAULTLIB:library

Original issue reported on code.google.com by Leonid.T...@gmail.com on 3 Aug 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Since it is only a warning it is not really important. But I suppose it can be 
fixed if there will be another 3.7.x release. The warning doesn't appear in 
BWAPI4 for me.

Original comment by AHeinerm on 4 Aug 2012 at 3:48

GoogleCodeExporter commented 9 years ago
I know it's just a warning, but I read about it on MSDN:
http://msdn.microsoft.com/en-us/library/6wtdswk0(v=vs.71).aspx

and it seems that such warning can cause unexpected results during run-time.
I also noticed that all ExampleAIModule files were compiled with msvcrt.lib 
standard library, while some of BWAPI files use libcmtd.lib.

Changing the setting in ExampleAIModule to libcmtd.lib - gives me lots of 
linker errors. 

Original comment by Leonid.T...@gmail.com on 4 Aug 2012 at 11:45

GoogleCodeExporter commented 9 years ago
We've reached the end of the year without a new 3.7.x release. Since the next 
release is planned to be BWAPI4, the current issue is no longer applicable.

Original comment by AHeinerm on 13 Dec 2012 at 8:24