From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rui Pedro Fernandes To: "'help-gcc@prep.ai.mit.edu'" Subject: Question Date: Mon, 18 Oct 1999 10:03:00 -0000 Message-id: X-SW-Source: 1999-10/msg00280.html Hi, I wrote a C program that interprets messages received via TCP socket connections and writes them to a log file. At the moment, the file's pathname is a string constant defined in the source file, as follows: char TraceFile[] = "/user/lepaco/goted/dev/DEBUG/IEC_ALONE.log"; However I want to be able to define it in the makefile. So I used -DDEBUG_PATHNAME="/user/lepaco/goted/dev/DEBUG/IEC_ALONE.log" in the cc command and replaced 'TraceFile' for 'DEBUG_PATHNAME' in the source code. But this doesn't work as 'make' says there is a " syntax error before / ". Would you please help me on this? Thank you very much Rui Pedro From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rui Pedro Fernandes To: "'help-gcc@prep.ai.mit.edu'" Subject: Question Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: X-SW-Source: 1999-10n/msg00280.html Message-ID: <19991031135700.Njz_-ax2wj08mSOSpQ9Yl89t5NrapycLdYK6PBpJWGU@z> Hi, I wrote a C program that interprets messages received via TCP socket connections and writes them to a log file. At the moment, the file's pathname is a string constant defined in the source file, as follows: char TraceFile[] = "/user/lepaco/goted/dev/DEBUG/IEC_ALONE.log"; However I want to be able to define it in the makefile. So I used -DDEBUG_PATHNAME="/user/lepaco/goted/dev/DEBUG/IEC_ALONE.log" in the cc command and replaced 'TraceFile' for 'DEBUG_PATHNAME' in the source code. But this doesn't work as 'make' says there is a " syntax error before / ". Would you please help me on this? Thank you very much Rui Pedro