From: Eugene Ageenko Newsgroups: comp.os.msdos.djgpp,gnu.gcc,gnu.gcc.help Subject: GCC vs. CC. problem with macro. Help required! Date: Tue, 01 Jun 1999 18:20:39 +0300 Organization: University of Joensuu / Dept. of Computer Sci. Lines: 49 Message-ID: <3753FA47.81AD25F6@cs.joensuu.fi> NNTP-Posting-Host: cspc52.joensuu.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I have teh following problem to compile my programs using "cc", when programs compiled perfectly with "gcc". As I have found the error was in that cc was unable to process concatenation operator ## in macro. But one of the modules we are using is based on this technique. Here is the simple program: #define A(x,y) x##y void main(void) { int abra; A(ab,ra) = 3; } And here are compilation results, compilation with cc did not come through, that I no wonder: > gcc a.c -E # 1 "a.c" void main(void) { int abra; abra = 3; } > cc a.c -E # 1 "a.c" void main(void) { int abra; ab##ra = 3; } Could you help me with this problem? Eugene