From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29358 invoked by alias); 4 Mar 2008 18:46:01 -0000 Received: (qmail 29348 invoked by uid 22791); 4 Mar 2008 18:46:00 -0000 X-Spam-Check-By: sourceware.org Received: from sif.is.scarlet.be (HELO sif.is.scarlet.be) (193.74.71.28) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Mar 2008 18:45:33 +0000 Received: from [192.168.123.145] (ip-83-134-146-70.dsl.scarlet.be [83.134.146.70]) (authenticated bits=0) by sif.is.scarlet.be (8.14.2/8.14.2) with ESMTP id m24IjI0v011233; Tue, 4 Mar 2008 19:45:25 +0100 Message-ID: <47CD98B8.3000107@gmail.com> Date: Tue, 04 Mar 2008 18:46:00 -0000 From: Geert Vancompernolle User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Full path in compiler warning/error messages Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: sif 20001; Body=4 Fuz1=4 Fuz2=4 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00031.txt.bz2 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 *