www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Link error - Undefined symbol garbage

↑ ↓ ← "jim p" <x y.com> writes:
Can someone tell me why the linker spews out lots of rubbish when it
encounters an undefined symbol.
Such as that below:
I know it can't resolve the call to the function get_alpha_words(), but why
all the odd looking characters ??

 dmc prog2 get_alpha_words2 && prog2 < text

get_alpha_words2.cpp: link prog2+get_alpha_words2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved prog2.obj(prog2) Error 42: Symbol Undefined ??$get_alpha_words2 V?$back_insert±tÚator stdÇä£vecÇïÄbasic_stringÇàöDÇâòcha r_traitsÇåö 1Çä¼ allocÇë?ÇäòÇöÿÇ?iÝÇàÆÚ YAXAAÇëÎiÇâÏeamÇØÏÇå?è?ë2ÐZ --- errorlevel 1
Jul 18 2003
↑ ↓ → "Walter" <walter digitalmars.com> writes:
That's the "mangled" name needed for typesafe linking.

"jim p" <x y.com> wrote in message news:bf8ons$1ovq$1 digitaldaemon.com...
 Can someone tell me why the linker spews out lots of rubbish when it
 encounters an undefined symbol.
 Such as that below:
 I know it can't resolve the call to the function get_alpha_words(), but

 all the odd looking characters ??

 dmc prog2 get_alpha_words2 && prog2 < text

get_alpha_words2.cpp: link prog2+get_alpha_words2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved prog2.obj(prog2) Error 42: Symbol Undefined

 r_traitsÇåö 1Çä¼
 allocÇë?ÇäòÇöÿÇ?iÝÇàÆÚ YAXAAÇëÎiÇâÏeamÇØÏÇå?è?ë2ÐZ

 --- errorlevel 1

Jul 18 2003