Re: Problems linking c++/SWI executable for Windows
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 11/06/2013 02:38 AM, Kaitain Jones wrote: >> Using MSVC 2009 (Express version), I can _now_ link to both the 32 >> and 64-bit versions. This was achieved by following the MinGW FAQ >> for creating libswipl.lib by making MinGW generate a .def file and >> using MSVC lib.exe to create the .lib file from there. > >> This is now in the GIT repo, so tomorrow's daily build should ship >> with .lib files (if we are lucky). > > Thanks for this, Jan. Finally got up and running with SWI embedded into an > MSVC Windows app today. > > Interestingly, I could ONLY get the 64-bit version working (this is on MSVC > 2010). I could build and link with both, but the 32-bit version exploded on > the launchpad with an “Application was unable to start correctly > (0x000007b)” error. I'm assuming this is from a 32 vs 64 bit mismatch > somewhere, i.e. the problem is likely at my end. I'll see if I can sort > that one out later. I was also a bit astonished that MSVC can silently link to MinGW's .dll.a files after renaming them, but the result simply crashes in a way which no debugger can make sense of :-( Please try a simple hello-world like app first, so you are sure there are no weird things going on. Also make sure there are no traces of renamed .dll.a files ... Success --- Jan