Dear SuSE users: I am trying to compile a program which compiles correctly using gcc 3.3 and SuSE 8.2. However, under 9, i get the following error: /usr/include/wx/repwrt.h:196 error: parse error before '*' token Is this a problem with SuSE 9? Is it ok to install the version of gcc that comes with 8.2 in my 9 box? Please point the way to any docs that could be useful in solving this problem. Thank you. -- Alfredo J. Cole alfredo@acyc.com alfredo@clshonduras.com
* Alfredo Cole
Dear SuSE users:
I am trying to compile a program which compiles correctly using gcc 3.3 and SuSE 8.2. However, under 9, i get the following error:
/usr/include/wx/repwrt.h:196 error: parse error before '*' token
Is this a problem with SuSE 9? Is it ok to install the version of gcc that comes with 8.2 in my 9 box? Please point the way to any docs that could be useful in solving this problem.
You'll get that error with any compiler, the problem is elsewhere. Can you show us the entire compilelog please? -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J.
El Mar 03 Feb 2004 10:37, Mads Martin Joergensen escribió:
* Alfredo Cole
[Feb 03. 2004 16:26]: Dear SuSE users:
I am trying to compile a program which compiles correctly using gcc 3.3 and SuSE 8.2. However, under 9, i get the following error:
/usr/include/wx/repwrt.h:196 error: parse error before '*' token
Is this a problem with SuSE 9? Is it ok to install the version of gcc that comes with 8.2 in my 9 box? Please point the way to any docs that could be useful in solving this problem.
You'll get that error with any compiler, the problem is elsewhere. Can you show us the entire compilelog please?
-- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J.
Under SuSE 8.2, this is the result: alfredo@toshiba:~/wxWindows/samples/report> make -f makefile.unx c++ -o report report.o repwrt.o `wx-config --libs` alfredo@toshiba:~/wxWindows/samples/report> Under SuSE 9.0, is as follows: brojas@wsjefe-sist:~/wxWindows/samples/report> make -f makefile.unx c++ -c `wx-config --cxxflags` -o report.o report.cpp In file included from report.cpp:34: /usr/include/wx/repwrt.h:196: error: error de decodificación before `*' to make: *** [report.o] Error 1 brojas@wsjefe-sist:~/wxWindows/samples/report> error de decodificación = parse error. Both have repwrt.h in the same directory, and both are using wxGTK 2.4.2. Thank you. -- Alfredo J. Cole alfredo@acyc.com alfredo@clshonduras.com
* Alfredo Cole
Under SuSE 8.2, this is the result:
alfredo@toshiba:~/wxWindows/samples/report> make -f makefile.unx c++ -o report report.o repwrt.o `wx-config --libs` alfredo@toshiba:~/wxWindows/samples/report>
Under SuSE 9.0, is as follows:
brojas@wsjefe-sist:~/wxWindows/samples/report> make -f makefile.unx c++ -c `wx-config --cxxflags` -o report.o report.cpp In file included from report.cpp:34: /usr/include/wx/repwrt.h:196: error: error de decodificación before `*' to make: *** [report.o] Error 1 brojas@wsjefe-sist:~/wxWindows/samples/report>
error de decodificación = parse error.
Both have repwrt.h in the same directory, and both are using wxGTK 2.4.2.
Did you install wxGTK-devel? What's the output of $ wx-config --cxxflags -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J.
The Tuesday 2004-02-03 at 11:30 -0600, Alfredo Cole wrote:
Under SuSE 9.0, is as follows:
brojas@wsjefe-sist:~/wxWindows/samples/report> make -f makefile.unx c++ -c `wx-config --cxxflags` -o report.o report.cpp In file included from report.cpp:34: /usr/include/wx/repwrt.h:196: error: error de decodificación before `*' to make: *** [report.o] Error 1 brojas@wsjefe-sist:~/wxWindows/samples/report>
What I see is a bug in the translation of messages by gcc, it mixes Spanish and English :-p I guess we would need to see a bit of the code in error (report.cpp:34 and repwrt.h:196), some lines before, some after. Probably gcc is stricter each version. You could try to find a newer version of that program. -- Cheers, Carlos Robinson
Alfredo Cole
Under SuSE 9.0, is as follows:
brojas@wsjefe-sist:~/wxWindows/samples/report> make -f makefile.unx c++ -c `wx-config --cxxflags` -o report.o report.cpp In file included from report.cpp:34: /usr/include/wx/repwrt.h:196: error: error de decodificación before `*' to make: *** [report.o] Error 1 brojas@wsjefe-sist:~/wxWindows/samples/report>
error de decodificación = parse error.
Both have repwrt.h in the same directory, and both are using wxGTK 2.4.2.
Do I see this correctly and you're trying to compile a wxWindows sample program? If yes, to which version of wxWindows does the code belong? If the sources aren't directly accessible for me, I'd either need all files from that directory or the preprocessed source to analyse this further. You get the preprocessed source by adding -save-temps to the compiler flags, i.e. c++ -c `wx-config --cxxflags` -save-temps -o report.o report.cpp the resulting report.ii would be the file I'd be interested in. Philipp
participants (4)
-
Alfredo Cole
-
Carlos E. R.
-
Mads Martin Joergensen
-
Philipp Thomas