Page 1 of 1

Linker-Error! Need help ...

Posted: Mon Dec 22, 2003 5:37 am
by Bluefish
Hi there.
I'm writing a little kernel in c++.
Compiling is OK, (Sorry for my english)
but when I run
"ld -e _start -Ttext 100000 --oformat=elf32-i386 -o kernel *.o"
I get the message:

istream.o(.text+0x227): In function `__static_initialization_and_destruction(int,int)`:
: undefined reference to `__dso_handle'
istream.o(.text+0x233): In function `__static_initialization_and_destruction(int,int)`:
: undefined reference to `__cxa_atexit'
istream.o(.text+0xa9): In function `__static_initialization_and_destruction(int,int)`:
o undefined reference to `__dso_handle'
ostream.o(.text+0xb5): In function `__static_initialization_and_destruction(int,int)`:
: undefined reference to `__cxa_atexit'

Can someone help me???????????? :'( :'( :'(

Re:Linker-Error! Need help ...

Posted: Tue Dec 23, 2003 5:17 am
by Pype.Clicker
well, what is istream.o ? something you've designed (that comes from your sourcecode) or something that comes from some place you do not know about (actually, from the compiler's standard libraries) ?

It looks to me that you've been forgetting a few things like making your code standalone, not using standard library stuff, etc.