From: "Matthew Conte" Newsgroups: comp.os.msdos.djgpp References: <3D5U8.94680$GY DOT 32020850 AT twister DOT nyroc DOT rr DOT com> <3d2380b0$0$15197$9b622d9e AT news DOT freenet DOT de> Subject: Re: ANNOUNCE: thinlib directmedia djgpp library 0.1.1 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 04 Jul 2002 13:15:30 GMT NNTP-Posting-Host: 66.66.237.173 X-Complaints-To: abuse AT rr DOT com X-Trace: twister.nyroc.rr.com 1025788530 66.66.237.173 (Thu, 04 Jul 2002 09:15:30 EDT) NNTP-Posting-Date: Thu, 04 Jul 2002 09:15:30 EDT Organization: Road Runner To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Hans-Bernhard Broeker" wrote: > > Error when compiling (Using gcc 3.0.4): > > > gpp -W -Wall -O3 -fomit-frame-pointer -ffast-math -o tl_sb.o -c tl_sb.c > ^^^ ^^^^^^^ > Usage error, I'd say. You shouldn't be compiling a C source with the > C++ compiler. [snip] why is gpp being used to compile tl_sb.c? my rule for .c files is: %.o: %.c $(CC) $(CFLAGS) -o $@ -c $< there is no rule for .cpp files: the one .cpp file in the distribution (the 'test' file) uses gpp explicitly in its rule for the resulting .exe. regards, matthew.