Linker-Error! Need help ...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Bluefish

Linker-Error! Need help ...

Post 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???????????? :'( :'( :'(
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Linker-Error! Need help ...

Post 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.
Post Reply