Subject: [linux-audio-dev] one for the C++ gurus
From: Dave Phillips (dlphilp_AT_bright.net)
Date: Tue Mar 12 2002 - 16:11:52 EET
Greetings:
I'm trying to compile Michael Peterson's port of Paul Lansky's RT. I
have the necessary ViewKit and OpenMotif components installed, but when
I run 'make' I receive the following error:
[dlphilp_AT_localhost rt]$ make
c++ -g -O2 -DLINUX -I/usr/X11R6/include -I./util -c -o
BulletinBoard.o BulletinBoard.C
In file included from BulletinBoard.C:55:
util/errormacro.h:9: warning: invalid character in macro parameter
name
util/errormacro.h:9: badly punctuated parameter list in `#define'
make: *** [BulletinBoard.o] Error 1
I checked on Google for information regarding this error and found that
it's apparently related to the C++ compiler version. I'm using GCC
2.95.3 but can't verify if that's an offending version. The (short)
header is as follows:
#ifndef _ERRORMACRO_H_SATIE
#define _ERRORMACRO_H_SATIE
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
#define error(...) do {\
sprintf(loggermsgbuffer, "%s:%s:%d: ",__FILE__, __FUNCTION__,
__LINE__); \
sprintf(loggermsgbuffer2, __VA_ARGS__); \
mainlog.logmessage(loggermsgbuffer, loggermsgbuffer2,
mainlog.debug); \
} while (0)
#else
#define error(args...) do {\
sprintf(loggermsgbuffer, "%f:%s:%d: ", __FILE_,__FUNCTION__,
__LINE__); \
sprintf(loggermsgbuffer2, ##args); \
mainlog.logmessage(loggermsgbuffer, loggermsgbuffer2,
mainlog.debug); \
} while (0)
#endif
#endif //_ERRORMACRO_H_SATIE
Can any of you bright people tell me where to start fixing things ?
TIA...And btw, I'd really like to *not* have to completely reinstall
another C/C++ compiler, but if that's what I have to do...<sigh>...
Best regards,
== Dave Phillips
The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm
The Linux Soundapps Site at http://linux-sound.org
Currently listening to: Aphex Twin, "Tha"
This archive was generated by hypermail 2b28 : Tue Mar 12 2002 - 15:41:35 EET