How do I compile AI's for the current release? If I check out the 0.71b1 branch from SVN and compile my group AI against that with MinGW on Win2k, the regular 0.71b1 release just crashes if I attempt to use the dll.
I'm guessing the release has been compiled with VS7/8, and doesn't like dll's from MinGW. If that is the case, I would like to suggest that future releases be also compiled with MinGW, as that platform is readily available.
But I might be completely wrong. Can someone tell me what the story is?
How do I compile AI's for the current release?
Moderator: Moderators
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
You're right. Because the AI interface is C++ and uses STL, you need to use an ABI compatible compiler and ABI compatible STL. In this case this means use MSVC7, any other compiler will crash spring.
To get something like a sufficient compatible AI interface ever, one needs to make a C only wrapper around it.
To get something like a sufficient compatible AI interface ever, one needs to make a C only wrapper around it.
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
Read my post. That won't work. The problem is C++.AF wrote:Or get the free microsoft enterprise compiler
Or get microsoft VS express 2005 for free
Or compile with gcc for use under linux.
The problem is that things like UnitDef etc are shared by the AI's and the engine rather than duplicated into engine copy and C standardized Interface copy.
Well, VC 2005 might work, but I've heard they use a different STL, so it could cause crashes anyway.