compile executable on Windows 8

Olivier Sallou <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
HI,
I tried to create a swiprolog executable on Windows 8 but I have error
on unknown types.
The same files/command works fine on linux, so I think it is really a
matter of install/config on Windows.

I installed swi-prolog and MinGW and declared their bin path in my PATH.

When I execute the build command:

 swipl-ld -initfile file0.pl -o myfile.exe -v file1.c file2.pl ....

I have errrors in my c file:
unknown type name 'SP_qid', same for SP_errno etc....

The gcc command executed by swi-pl is:

gcc -c -D_REENTRANT -D__WINDOWS__ -D_WINDOWS -D__SWI-PROLOG__
-D__SWI_EMBEDDED__ -I"c:/program files/swipl/include" -o myfile.obj file1.c

Include path is correct though is has "/" instead of "\" for Windows.


Is there any specific config to be done for Windows?

Thanks

Olivier

-- 
gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
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.