[GEM-dev] building gem CVS (anonymous from right now)
IOhannes m zmoelnig
zmoelnig at iem.at
Fri Jan 6 13:12:55 CET 2006
B. Bogart wrote:
> Hi all,
>
> I'm trying to recompile Gem with v4l2 stuff, but the compile bails with this:
>
> g++ -c -fPIC -g -O2 -freg-struct-return -O3 -fno-builtin -falign-loops=16
> -funroll-loops -ffast-math -mmmx -I/usr/X11R6/include
> -I/usr/include/ffmpeg -I/usr/include/quicktime
> -I/usr/include/avifile-0.7 -I/usr/include/freetype2 -I..
> -I/usr/include/FTGL -I/usr/include/freetype2 GemGLUtil.cpp -o GemGLUtil.o
> In file included from GemGLUtil.cpp:18:
> GemGLUtil.h:25: error: declaration of C function `int getGLdefine(t_symbol*)'
> conflicts with
> GemGLUtil.h:24: error: previous declaration `int getGLdefine(char*)' here
> GemGLUtil.h:26: error: declaration of C function `int getGLdefine(t_atom*)'
> conflicts with
> GemGLUtil.h:25: error: previous declaration `int getGLdefine(t_symbol*)' here
> GemBase.cpp:138: error: parse error at end of input
> make[1]: *** [GemBase.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
hmm, very interesting. which version of g++ are you using? (but it
tested it with g++2.95 and g++-4.0.3 and it works fine)
the technique used is function overloading, and this is just perfect C++.
why does your compiler think it is ordinary C??
mf.asd.r
IOhannes
More information about the GEM-dev
mailing list