| View previous topic :: View next topic |
| Author |
Message |
Lukasz

Joined: 19 Jan 2004 Posts: 248 Location: Denmark
|
|
| Back to top |
|
 |
ubergeek42
Joined: 13 Jul 2005 Posts: 83
|
Posted: Sun Jan 28, 2007 4:01 am Post subject: |
|
|
| Wow, I never knew that that could be done, very cool, thanks. |
|
| Back to top |
|
 |
ps2devman
Joined: 09 Oct 2006 Posts: 265
|
Posted: Sun Jan 28, 2007 7:09 am Post subject: |
|
|
| Thx a lots for the tip! |
|
| Back to top |
|
 |
ps2devman
Joined: 09 Oct 2006 Posts: 265
|
Posted: Thu Feb 01, 2007 1:09 am Post subject: |
|
|
I have a question related to compilation error messages.
Let's say I have 2 c modules. I implement function Scales() (typo error) in one, and I call function Scale() in the other one. I declare function Scale() in header included by both, so no compilation error occurs before linking.
ld then fires an error and tells me there is a link error without any info.
That case is very annoying. Each time it happens I get no idea what is the missing function, according to ld, so I spend a lots of time commenting code in order to find out the call that calls missing function.
Am I missing a flag or something in makefile?
I use EE_CFLAGS += -g |
|
| Back to top |
|
 |
Lukasz

Joined: 19 Jan 2004 Posts: 248 Location: Denmark
|
Posted: Thu Feb 01, 2007 2:28 am Post subject: |
|
|
You are talking compilation time error and not runtime, which the tutorial I wrote is about.
When you get an undefined reference, you get which object file it is in and what you the undefined function you are trying to link against. Based on this information, you should be able to locate your problem.
But like I said, compliation problem, not runtime. _________________ Lukasz.dk |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Thu Feb 01, 2007 4:20 am Post subject: |
|
|
duh...
Until now, I was still disassembling my code to find an error using ee-objdump...
I cannot beleive it's so easy with ee-addr2line, thank you very much for the great tip ! _________________ http://psxdev.info/evilo/ |
|
| Back to top |
|
 |
|