NO

Author Topic: PellesC - PureBASIC - External Symbol unresolved XLen/XRan  (Read 5027 times)

freddix

  • Guest
PellesC - PureBASIC - External Symbol unresolved XLen/XRan
« 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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2107
Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
« Reply #1 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


May the source be with you

freddix

  • Guest
Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
« Reply #2 on: October 19, 2007, 01:06:16 PM »
so, which .lib should I import to have these external symbols resolved ?

Thank you.

Regards,
Fred

Ngan Lo

  • Guest
Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
« Reply #3 on: October 19, 2007, 02:00:00 PM »
no, you cannot use C++ standard lib/dll with PellesC

freddix

  • Guest
Re: PellesC - PureBASIC - External Symbol unresolved XLen/XRan
« Reply #4 on: October 19, 2007, 05:12:20 PM »
Hi,

Is there a workaround ?