Re: compile executable on Windows 8

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 10/22/2013 04:11 PM, Olivier Sallou wrote:
> But after replacing with the correct swi-prolog C file, I still faced
> undefined reference to PL_close_query,PL_halt,.... at link time on step:
>
> gcc -o myfile.exe myfile.obj -L"c:/program files/swipl/lib" -lswipl
>
> -> myfile.obj:myfile.c:(.text+0xb4): undefined reference to
> "PL_initialise"  ....
>
> In  c:/program files/swipl/lib, I have libswipl.dll.a

That is rather odd.  Somehow you'd think it picks a libswipl from
elsewhere.  I'd try adding -v to gcc to see what it is doing and
verify the symbols using nm (if this is in MinGW).  Maybe someone
else has a clue.  I never tried this on a Windows machine :-)

	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.