RE: Debugging multithreaded program on Debian

1998-11-11 Thread Geoffrey L. Brimhall
Even linking with libc6 does not cause multiple threads to work correctly. You have to link with libpthreads to have threading work correctly (ie, add -lpthreads). Though I've not digged to find out the reason, it appears that just linking libc6 fills in pthread apis without actually doing anythin

RE: Debugging multithreaded program on Debian

1998-11-09 Thread Shaleh
What you are doing wrong is compiling an app to debug it w/ optimizations. This may not be causing your problem (I have never tried to use ddd). However -g and -O? is not guaranteed to work well. It works, but the results are not well defined. To debug just use -g, then once it is working turn