Re: Problems linking c++/SWI executable for Windows

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 11/07/2013 12:34 AM, Kaitain Jones wrote:
>  > 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 ...
>
> Just to clarify, were you able to run a 32-bit exe, embedding SWI,
> compiled and linked using MSVC, or were you only able to compile and
> link it? And were you able to try 64-bit?
>
> To reiterate, I can now compile, link and run a 64-bit exe using MSVC,
> make queries to SWIPL, iterate through solutions etc. Everything looks
> good so far. But 32-bit blows up instantly, and doesn't even get into
> Main...sounds like you encountered this as well..?

It works.  I've uploaded the code and script that proves this to

http://www.swi-prolog.org/download/misc/msvc32-demo.tgz

(tried to mail it first, but it was rejected because it contains
Windows script files).

Hope this helps you isolating the problem.

	Cheers --- Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.