delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Date: | Wed, 12 Dec 2001 23:22:16 +0200 (WET) |
From: | Andris Pavenis <pavenis AT lanet DOT lv> |
X-Sender: | pavenis AT ieva06 |
To: | Raf256 <raf256 AT go2 DOT pl> |
Cc: | djgpp AT delorie DOT com |
Subject: | Re: iomanip + allegro |
In-Reply-To: | <Xns9175C904B373Brfdfciasdsdj412tr@213.180.128.20> |
Message-ID: | <Pine.A41.4.05.10112122316430.32912-100000@ieva06> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On 12 Dec 2001, Raf256 wrote: > Using iomanip.h with allegro.h is impossible > > Compilation of file : > #include <iomanip.h> > #include "allegro.h" > int main() { return 0; } > > Returns : > allegro/fixed.h(26) Error: `typedef long int fixed' redeclared as > different kind of symbol > c:/djgpp/lang/cxx-v3/bits/ios_base.h(554) Error: previous declaration of > `std::ios_base& std::fixed(std::ios_base&)' > There were some errors > > where should I post this bug-report... are some allegro 'gurus' reading > this group :) ? > > This bug exist on Allegro : > Version 3.9.40 (WIP) > Version 3.9.39 (WIP) > 2 possibilities: 1) wrapping allegro in namespace: #include <iomanip.h> namespace allegro { #include "allegro.h" }; int main() { allegro::allegro_init (); return 0; } seems to compile and link Ok (gcc-3.0.2 Linux-to-DJGPP cross-compiler). Consider that old style header iomanip.h is expected to be deprecated in gcc-3.1 2) use #include <iomanip> instead of <iomanip.h> Andris
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |