delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/07/14:45:10

From: "Ed Manlove" <emanlove AT ieee DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: `operator new' takes type `size_t' as first parameter Revisited
Lines: 61
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <E1ko9.403$Od5.125528170@news.netcarrier.net>
Date: Mon, 7 Oct 2002 14:35:02 -0400
NNTP-Posting-Host: 207.207.243.166
X-Complaints-To: news AT netcarrier DOT com
X-Trace: news.netcarrier.net 1034013924 207.207.243.166 (Mon, 07 Oct 2002 14:05:24 EDT)
NNTP-Posting-Date: Mon, 07 Oct 2002 14:05:24 EDT
Organization: NetCarrier Internet Services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am receiving an error which has been brought up here before

http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&safe=off&q=tinfo&met
a=group%3Dcomp.os.msdos.djgpp

The error, shown here,

make.exe[4]: Entering directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
c:/djgpp/gnu/gcc-2.952/build.djg/gcc/xgcc -Bc:/djgpp/gnu/gcc-2.952/build.djg
/gcc
/ -Bc:/djgpp/h8300-hitachi-hms/bin/ -Ic:/djgpp/h8300-hitachi-hms/include -O2
  -D
CROSS_COMPILE -DIN_GCC     -O2 -g -save-temps -I./include  -DDF=SF -DDI=SI -
g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc   -g -O2 -I. -I../../gc
c -I
../../gcc/config -I../../gcc/../include \
  -c ../../gcc/cp/tinfo.cc
In file included from ../../gcc/cp/tinfo.cc:32:
include/new:28: `operator new' takes type `size_t' as first parameter
include/new:29: `operator new' takes type `size_t' as first parameter
include/new:32: `operator new' takes type `size_t' as first parameter
include/new:33: `operator new' takes type `size_t' as first parameter
include/new:38: `operator new' takes type `size_t' as first parameter
include/new:39: `operator new' takes type `size_t' as first parameter
make.exe[4]: *** [tinfo.o] Error 1
make.exe[4]: Leaving directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
make.exe[3]: *** [libgcc2.a] Error 1
make.exe[3]: Leaving directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
make.exe[2]: *** [stmp-multilib-sub] Error 2
make.exe[2]: Leaving directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
make.exe[1]: *** [stmp-multilib] Error 1
make.exe[1]: Leaving directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
make.exe: *** [all-gcc] Error 2

C:\DJGPP\gnu\gcc-2.952\build.djg>


although noted in the previous posts no solution is provided or hinted at. I
have added -save-temps to my CC options and recieve a singl;e *.ii file
tinfo.ii which seems to corresponds to my error.  In the tinfo.ii file I
check the two header files,

# 1 "include/stddef.h" 1
# 1 "c:/djgpp/include/sys/djtypes.h" 1 3

 and notice no conflicts here.  But then I get another stddef as shown here

# 9 "include/stddef.h" 2

typedef int ptrdiff_t;
typedef long unsigned int size_t;


So any hints here?

--
Ed Manlove
emanlove AT eclipse DOT net


- Raw text -


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