View previous topic :: View next topic |
Author |
Message |
rperrin1 n00b
Joined: 08 Aug 2003 Posts: 15
|
Posted: Tue Sep 23, 2003 5:58 am Post subject: emerged DDD gives error about portage dir |
|
|
Hi I've just started using DDD to debug a C program I am writing for class. I emerge'd DDD and it seemed to go fine. The program starts up, but when I try to open a file I get the following error:
/var/tmp/portage/glibc-2.3.2-r1/buildhere/csu/crti.S: No such file or directory
It then proceeds to not load my program, but it doesn't crash or anything either.
Does anyone have any ideas? I know nothing about portage so I didn't want to mess around with it without guidance
Cheers!
Craig |
|
Back to top |
|
|
Saruman n00b
Joined: 23 Aug 2002 Posts: 64 Location: Brindisi
|
Posted: Tue Sep 23, 2003 7:08 pm Post subject: |
|
|
Have you compiled with the -g flag and _no_ -Oi (i>0) flag?
For example:
Code: |
gcc -O0 -g3 myprg.c -o myprg
|
where
-O0 --> no optimization at all
-g3 --> full debug info
Anyway you may try to use gdb manually or another debugger front-end such as kdbg.
Good luck! _________________ ---
Miser, miser! Modo niger et ustus fortiter! |
|
Back to top |
|
|
|