This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> On Sun, 2009-03-08 at 22:27 -0700, Ian Lance Taylor wrote: > michael@camille OurRPG $ gcc -O2 -W -Wall -pedantic `sdl-config > --cflags` -c character.cpp At a guess, I think it is being compiled as C, not C++ - try using this command line: g++ O2 -W -Wall -pedantic `sdl-config --cflags` -c character.cpp to force C++ compilation.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |