delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/09/06:17:53

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "jansb000" <jansb000 AT wxs DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: GCC 3.0.2 reports syntax error
Date: Sun, 9 Dec 2001 12:11:22 +0100
Organization: Planet Internet
Lines: 28
Message-ID: <9uvgl3$qie$1@reader05.wxs.nl>
NNTP-Posting-Host: ipc3797b23.dial.wxs.nl
X-Trace: reader05.wxs.nl 1007896035 27214 195.121.123.35 (9 Dec 2001 11:07:15 GMT)
X-Complaints-To: abuse AT planet DOT nl
NNTP-Posting-Date: 9 Dec 2001 11:07:15 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
x-mimeole: Produced By Microsoft MimeOLE V5.50.4807.1700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Below is an include file from my program. With GCC 2.95.3 it compiles fine,
but with GCC 3.0.2 I get a "syntax error before ; token" in the line with
the typedef. I also had to comment out the line that includes stl.h.

What do I have to change to get rid of the syntax error?
Is there an overview of changes between GCC 3.0.2 and GCC 2.95.3 ???

//
// props.h
// =======
//

#ifndef PROPS_H
#define PROPS_H

// #include <stl.h>
#include <bitset>
#include "global.h"

#define PROPNUM 32

typedef bitset<PROPNUM> PROPS;

#include "propdefs.h"

#endif


- Raw text -


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