Re: compile executable on Windows 8

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 10/22/2013 03:46 PM, Olivier Sallou wrote:
> 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....

Well, these are types from the SICStus foreign interface ...  Possibly
you are using the emulation, and there is some error before that the
emulaiton header cannot be found or ...

	Cheers --- Jan

>
> 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
>
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.