www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/09/06:51:35

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Example 22 Errors.
Date: 9 Dec 2000 11:47:18 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 22
Message-ID: <90t646$g58$1@nets3.rz.RWTH-Aachen.DE>
References: <90s322$i1g$1 AT sooner DOT brightok DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 976362438 16552 137.226.32.75 (9 Dec 2000 11:47:18 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 9 Dec 2000 11:47:18 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

fox <puffycheetos AT yahoo DOT com> wrote:
> Can anyone help me figure out this error?

> C:\djgpp\ALLEGRO\EXAMPLES>gpp ex22.c
> ex22.c: In function `int main()':
> ex22.c:454: no match for `++{anonymous enum} &'

Looks like your use of 'gpp' instead of 'gcc' forced the compiler to
believe ex22.c is a C++ program. It isn't. Compiling it as

	gcc ex22.c -o ex22.exe -lalleg

should work. If it doesn't, please be show us the file 'err.log'
generated by the command

	redir -eo gcc -v ex22.c -o ex22.exe -lalleg > err.log



-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019