g++ linking shared object problem

2008-06-05 Thread stamen
Hi, I link a program to a shared library (which I created before). From the library I just use one class. The linking seems to work. However the final executable seems to be corrupt. It just starts and stops without an error message. However even print statements which are in the code are not

cannot compile function containing "get_current_dir_name"

2007-08-21 Thread Rainer Stamen
Hi, I try to compile a program which contains a call to "get_current_dir_name". The compiler complains that the fucntion is undeclared. From checking the archives I learned that the problem existed already in the past. However the proposed fix (add #define _GNU_SOURCE) seems not to work for