Error on windows: undefined reference to `PL_initialise'

classic Classic list List threaded Threaded
1 message Options
kiw
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error on windows: undefined reference to `PL_initialise'

kiw
Hi,

I'm working on a windows 7 system and I try to produce an exe-File as first step (later a dll) based on the calc.c/calc.pl example of the swi prolog manual but it doesn't work.
I get the errors:
calc.obj:calc.c:(.text+0xc8): undefined reference to `PL_initialise'
calc.obj:calc.c:(.text+0xd8): undefined reference to `PL_halt'
calc.obj:calc.c:(.text+0xf4): undefined reference to `PL_predicate'
calc.obj:calc.c:(.text+0x107): undefined reference to `PL_new_term_refs'
calc.obj:calc.c:(.text+0x125): undefined reference to `PL_put_atom_chars'
calc.obj:calc.c:(.text+0x14f): undefined reference to `PL_call_predicate'
calc.obj:calc.c:(.text+0x16c): undefined reference to `PL_halt'

I used this call of swipl:
swipl-ld -o calc calc.c calc.pl -v

SWI-Prolog.h is well included and found. What else can be wrong?

I would be happy if someone could give me an advice.

Cheers, kiw
Loading...