Description of Problem:
I'm using QT designer 3.0 and the qmake command to generate a Makefile from
As soon as I type make, it doesn't compile...
Is it a Makefile bug or a g++ bug ??
g++ -c -pipe -Wall -W -g -D~/myfolder -I../myfolder -I/usr/local/qt/include
-I.ui/ -I.moc/ -I/usr/local/qt/mkspecs/default -o .obj/myfile.o myfile.cpp
<command line>: macro names must be identifiers
g++: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [.obj/myfile.o] Error 1
Version-Release number of selected component (if applicable):
I don't know
Steps to Reproduce:
It is both a bug in your Makefile and in cpp, but the one in cpp
has a fix scheduled already for some time into 2.96-100.
2001-05-27 Neil Booth <email@example.com>
* cpplib.c (run_directive): Set pfile->directive.
--- gcc/cpplib.c.jj Fri Oct 12 16:49:21 2001
+++ gcc/cpplib.c Thu Oct 18 10:53:03 2001
@@ -398,7 +398,8 @@ run_directive (pfile, dir_no, type, buf,
- (void) (*dtable[dir_no].handler) (pfile);
+ pfile->directive = &dtable[dir_no];
+ (void) (*pfile->directive->handler) (pfile);
end_directive (pfile, 1);
The bug in the Makefile is -D~/myfolder, defineds need to be identifiers.
You probably want something like -DHOME=`echo ~/myfolder`.
The fix is in 2.96-100 and above.
*** Bug 64308 has been marked as a duplicate of this bug. ***
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.