Full path in compiler warning/error messages

Geert Vancompernolle geert.vancompernolle@gmail.com
Tue Mar 4 18:46:00 GMT 2008


Hi,

I have a situation where I can only see part of the path name when 
gcc/g++ finds errors/warnings.  One such example is given below:

../src/mqmgr.cpp: In member function `virtual void 
CMqMgrUnique::Execute()':
../src/mqmgr.cpp:319: warning: unsigned int format, pointer arg (arg 2)
../src/mqmgr.cpp:353: warning: int format, long int arg (arg 3)
../src/mqmgr.cpp:375: warning: int format, long int arg (arg 3)


This is the compiler invocation command currently used:

g++-cris  -isystem 
/home/foxboard/devboard-R2_01/target/cris-axis-linux-gnu/include -mlinux 
-mno-mul-bug-workaround -c -Wall -Wshadow -O0 -g 
-fno-omit-frame-pointer  -DGVCDEBUG -fmessage-length=0 ../src/mqmgr.cpp 
-o mqmgr.o

What is the option to tell the compiler (in the above case, compiling 
for the CRIS) to show the whole path?  Should be fairly easy to do, but 
so far I didn't find the option.

-- 
*Best rgds,

--Geert

*



More information about the Gcc-help mailing list