Pelles C forum

C language => Beginner questions => Topic started by: mk-soft on May 04, 2007, 12:40:26 AM

Title: Compiled LIB - External Symbol ___ftoll
Post by: mk-soft on May 04, 2007, 12:40:26 AM
I have compiled a LIB for Purebasic.
Now Purebasic Linker message:

POLINK:Error: Unresolved external symbol '___ftoll'

can help me to insert this symbol  into the lib


Thanks

GT :)

Title: Re: Compiled LIB - External Symbol ___ftoll
Post by: sp00n on May 04, 2007, 10:37:49 AM
Can i ask you - whats a reason to write in this branch? :)
Pelles C > C language > Beginner questions > Compiled LIB - External Symbol ___ftoll
Title: Re: Compiled LIB - External Symbol ___ftoll
Post by: frankie on May 04, 2007, 11:41:22 AM
The symbol ___ftoll is defined in the pocrt library.
This library is automatically included when you compile a project.
Where have been compiled the sources? Have you compiled from IDE or from command line?
In the last case you have to add the pocrt.lib in the linker flow (or crt.lib for static linking).
Title: Re: Compiled LIB - External Symbol ___ftoll
Post by: mk-soft on May 05, 2007, 03:40:19 AM
Now run a LIB for PureBasic

Settings:
#pragma ftol(inlined) for external symbol ___ftoll

Compiler Option:
/Zl for external symbol _fltused

 ;)

Modify for Purebasic this Code. http://disphelper.sourceforge.net/ (http://disphelper.sourceforge.net/)

Is very top code 8)