Page 1 of 1

Linux Debugging

Posted: Fri Mar 06, 2009 6:39 am
by lordmaiku
Hello,

So this evening I've worked on compiling my application on Linux for the first time. After some minor adjustments to the code to appease g++, it compiles perfectly well, with no errors. But... when I try and start the app, nothing happens. Nothing at all. Which is quite puzzling. Where do I begin with this?

This is actually my second foray into Linux development... apparently the first time I got lucky, because my app worked perfectly without modification. I didn't even have to debug that time. I guess it's time I pulled out gdb...

Thanks in advance for any tips

Posted: Fri Mar 06, 2009 8:03 am
by upCASE
Hi!
What does "nothing happens" mean? Does it crash, or simply terminate when called from the shell?

Posted: Fri Mar 06, 2009 10:17 pm
by lordmaiku
It literally does nothing. Called from the shell: no errors, no messages. It's like it starts and quits immediately without error.

Posted: Fri Mar 06, 2009 11:26 pm
by computerquip
Create some logging messages so you can track where it is using either printf, sprintf, or cout. Then execute it inside of bash. It should produce some text that will tell you everything you wanted it too. Also, produce some code that we can look at!

Posted: Sat Mar 07, 2009 4:26 am
by lordmaiku
Well apparently Windows just completely ignores my critical sections locks, because there was a bug that would obviously cause a deadlock (and did, on Linux) but didn't on Windows. Well after I fixed that, it started right up! Thanks