[Tinymux] Compiling on GCC4?

Mark hassman mark at moosh.net
Fri Oct 7 18:52:33 EDT 2005


Looks to me like it is merely a problem with pre-declaration of 
CLinearTimeDelta prior to CLinearTimeAbsolute.  I cannot confirm that 
since I do not currently have access to the gcc4 on any box.   You could 
try either adding a declaring of CLinearTimeDelta to the top of 
timeutil.h (class CLinearTimeDelta;) before the def of 
CLinearTimeAbsolute or re-ordering the class definitions.  

GCC4, like gcc3.4, is purportedly more  ANSI specification restrictive 
on the front of C++.

     -Mark

Greg Taylor wrote:

>Has anyone had any luck compiling MUX2 on gcc4? I tried on an Ubuntu
>"Breezy" machine with gcc 4.0 and got a whole bunch of funky errors:
>
>greg at stimpy:~/Desktop/mux2.4/src$ make
>g++  -g -O          -c _build.cpp
>g++  -g -O          -c alloc.cpp
>timeutil.h:37: error: expected ‘,’ or ‘...’ before ‘&’ token
>timeutil.h:37: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>timeutil.h:38: error: expected ‘,’ or ‘...’ before ‘&’ token
>timeutil.h:38: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>timeutil.h:39: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>timeutil.h:39: error: ‘CLinearTimeDelta’ is neither function nor member
>function ; cannot be declared friend
>timeutil.h:39: error: expected ‘;’ before ‘operator’
>timeutil.h:49: error: expected ‘,’ or ‘...’ before ‘&’ token
>timeutil.h:49: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>timeutil.h:52: error: expected ‘,’ or ‘...’ before ‘&’ token
>timeutil.h:52: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>timeutil.h:53: error: expected ‘,’ or ‘...’ before ‘&’ token
>timeutil.h:53: error: ISO C++ forbids declaration of ‘CLinearTimeDelta’
>with no type
>make: *** [alloc.o] Error 1
>
>Anyone else having this trouble? Note that I tried compiling on gcc3.4
>with no problem on a different box.
>
>_______________________________________________
>Tinymux mailing list
>Tinymux at tinymux.org
>http://www.tinymux.org/mailman/listinfo/tinymux
>  
>



More information about the Tinymux mailing list