Pelles C forum

C language => Beginner questions => Topic started by: freddix on October 19, 2007, 10:22:08 AM

Title: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
Post by: freddix on October 19, 2007, 10:22:08 AM
Hi all, I'm new here.

I use PureBASIC and, I'd like to integre DarkGDK in.
I managed to import many .LIB to resolve all external links needed but two of them remain unresolved.
I searched over the net, over PureBASIC forums, about this problem but no one was able to find the solution. ( I searched with terms : ?_Xran@_String_base@std@@QBEXXZ and with ?_Xlen@_String_base@std@@QBEXXZ separately )

Here is the linker error :

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '?_Xran@_String_base@std@@QBEXXZ'.
POLINK: error: Unresolved external symbol '?_Xlen@_String_base@std@@QBEXXZ'.
POLINK: error: Unresolved external symbol '___ImageBase'.
POLINK: fatal error: 3 unresolved external(s).
---------------------------
OK
---------------------------

Related topics used for me to search :
http://www.purebasic.fr/english/viewtopic.php?t=28544&highlight=
http://www.purebasic.fr/english/viewtopic.php?t=28571&highlight=
http://www.purebasic.fr/english/viewtopic.php?t=28747&highlight=
http://www.purebasic.fr/english/viewtopic.php?t=29045&highlight=
http://www.purebasic.fr/english/viewtopic.php?t=29189&highlight=
http://www.purebasic.fr/english/viewtopic.php?t=23380&highlight=

Is it a compatibility issue between PellesC and these functions ? or something else ?
I hope someone can help me :)

Thank you

Regards,
Fred
Odyssey-Creators
http://www.odyssey-creators.com
Title: Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
Post by: TimoVJL on October 19, 2007, 12:51:05 PM
PellesC is C compiler

'?_Xran@_String_base@std@@QBEXXZ'
'?_Xlen@_String_base@std@@QBEXXZ'

are exported C++ functions from msvcpxx.dll, like msvcp71.dll


Title: Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
Post by: freddix on October 19, 2007, 01:06:16 PM
so, which .lib should I import to have these external symbols resolved ?

Thank you.

Regards,
Fred
Title: Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
Post by: Ngan Lo on October 19, 2007, 02:00:00 PM
no, you cannot use C++ standard lib/dll with PellesC
Title: Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
Post by: freddix on October 19, 2007, 05:12:20 PM
Hi,

Is there a workaround ?