google-code-export / bwapi-mono-bridge

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

Can't compile bwapi-native.dll ! #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1 - I use VS2008 and try to compile bwapi-native as well as the whole project 
too. But it always got error LNK1257 . 

2 - IS there anyway to change the keyword `type` in `Event_Enum` ? 
    Because it match with my F# keyword :(

Thank.

Original issue reported on code.google.com by Deula...@gmail.com on 21 Nov 2010 at 12:09

GoogleCodeExporter commented 9 years ago
Can you not just stop compiling the bwapi-native project. It is already 
compiled in the build as far as I know. I have in VS just removed the flag that 
will compile this project. Then there is no problems.

Original comment by twsandb...@gmail.com on 21 Nov 2010 at 4:59

GoogleCodeExporter commented 9 years ago
But in the future , if I want to change something in the src as I need, then I 
must compile again. 
Note: I think bwapi-native must be compiled by VS2008 SP1. While other's just 
fine. 

Original comment by Deula...@gmail.com on 21 Nov 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Don't you get this warning, when compiling in VS2008?
Warning 1   warning LNK4098: defaultlib 'libcmtd.lib' conflicts with use of other 
libs; use /NODEFAULTLIB:library MSVCRTD.lib bwapi-native

Original comment by twsandb...@gmail.com on 24 Nov 2010 at 10:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
me: Morphism - I will tell more on #BWAPI

Original comment by Deula...@gmail.com on 24 Nov 2010 at 10:55

GoogleCodeExporter commented 9 years ago
Later I successfully compiled it on VS2008 SP1 . With your Warning. But it's 
fine.
So Please note to people about using SP1 for bwapi-native.

Original comment by Deula...@gmail.com on 24 Nov 2010 at 11:02

GoogleCodeExporter commented 9 years ago
glad to hear it worked out. I think this is because the BWAPI.lib and BWTA.lib 
are compiled with VS2008 SP1 and wont link properly with something compiled 
with VS2008

Original comment by dpershouse@gmail.com on 24 Nov 2010 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by dpershouse@gmail.com on 24 Nov 2010 at 9:13

GoogleCodeExporter commented 9 years ago

2 - IS there anyway to change the keyword `type` in `Event_Enum` ? 
    Because it match with my F# keyword :(

You might be able to do something with the fact that they are all partial 
classes so you can add other code to the generated files in csharp to work 
around the "type" keyword. Unfortunately the enums etc are all autogenerated 
from the C++ headers

Original comment by dpershouse@gmail.com on 24 Nov 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Thanks. It's fine now. 
Everything is working well :)

Your mono bridge has opened a lot of potential gates for many other languages 
to jump into BWAPI world  :D 

My F# bot on BWAPI is my very big thank to you, again :) 

Original comment by Deula...@gmail.com on 24 Nov 2010 at 9:35