www.digitalmars.com         C & C++   DMDScript  

c++ - Link error - Undefined symbol garbage

reply "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
prog2.cpp: 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
parent "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
why
 all the odd looking characters ??

 dmc prog2 get_alpha_words2 && prog2 < text
prog2.cpp: 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