Hi, there is a binreloc.....
http://autopackage.org/docs/binreloc/
With this binreloc, you can get the full path of you application. I can compile a simple c program with this binreloc just like in example in that website....
However I failed to compile a c++ program with this binreloc. This is the error:
prefix.cpp:59: error: invalid conversion from `void*' to `char*(*)(void*, void*)'
Any idea???