Need help with ld

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.
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Post by iammisc »

what are the errors?
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

support.o: In function `_main':
support.c:(.text+0x9): undefined reference to `_CTOR_LIST__'
support.o: In function `atexit':
support.c:(.text+0x3b): undefined reference to `_DTOR_LIST__'
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

I think I've found my problem. The C support code doesn't work with the compiler I'm using because the C support code is compiler specific for the DJGPP compiler that I used in Windows.
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

Are there any tutorials on how to enable support for global objects?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

It didn't work before, but I'll try it again.
User avatar
binutils
Member
Member
Posts: 214
Joined: Thu Apr 05, 2007 6:07 am

Post by binutils »

chat log on googling wrote: 07:04 < BleuLlama> __main.o(.text+0xc4): undefined reference to `__CTOR_LIST__'
07:05 < Gent> yes
07:05 < EvilDude> oo i've seen the _CTOR_LIST__ error somewhere
07:05 < EvilDude> linkin error?
07:05 < EvilDude> linking*
07:05 < BleuLlama> yeah. linking
07:05 < julz> hey, um... i just built podzilla from CVS and i cant view jpegs anymore, the beta shows them fine but not the CVS, how to fix?
07:07 < EvilDude> BleuLlama: I think it's probably just an error in the file like in the start or something? I usually fix it by checking for any stupid errors
07:10 < courtc> BleuLlama- LDFLAGS=-elf2flt
07:11 < EvilDude> or that hahaha
07:12 < EvilDude> Is there any way to compile libmad to be a hell of a lot faster. eg the --make-it-work-on-ipod option? Coz I've tried all optimizations and it's only 40% :(
07:12 < BleuLlama> Huzzah!
07:12 < BleuLlama> thanks, court!
Post Reply