www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/21/15:46:06

From: Jan Gutter <s9700710 AT postino DOT up DOT ac DOT za>
Newsgroups: comp.os.msdos.djgpp
Subject: <iomanip.h>, a bug or my idiocy?
Date: Thu, 21 May 1998 21:22:57 -0700
Organization: University of Pretoria test
Lines: 35
Message-ID: <3564FDA0.2375825D@postino.up.ac.za>
NNTP-Posting-Host: b129pc160.ee.up.ac.za
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

When I try to compile a simple program like this:

#include <iostream.h>
#include <iomanip.h>
int main()
{
  cout  << setw(3) << 1;
  return 0;
}

I get a compiler error message in <iomanip.h>.
(one of the overloaded operators was defined like "operator>> <>(")
After I deleted the offending "<>" I got a linker error complaining that
certain
operators were not defined.

Using a previous version of DJGPP (gcc ver 2.7.something) it compiled
and linked
OK, but it gave a SIGSEV at the same line when run.

Is it something I overlooked or bungled up during installation?

These are the files I used to install my current version of djgpp:

bnu281b.zip gcc281b.zip lgpp280b.zip mak3761b.zip gpp281b.zip
djdev201.zip faq210b.zip rhide14b.zip bnu281b.zip bsn125b.zip
flx254b.zip txi390b.zip csdpmi4b.zip

--
// Jan Gutter
// gutter AT ilink DOT co DOT za
//
// Share and enjoy!


- Raw text -


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