* g++ & gcc
@ 2001-12-19 8:55 v.pekar
2001-12-19 9:31 ` Claudio Bley
0 siblings, 1 reply; 2+ messages in thread
From: v.pekar @ 2001-12-19 8:55 UTC (permalink / raw)
To: gcc-help
Hi!
I have following problem: I have a piece of C code, which can be compiled with gcc, but if I try to compile it with g++ (I need it, because I'm going to use io-streams), I get some errors of the kind: implicit decloration of the function 'int atoi(...)' (the same for bcopy(...) and bzero(...)).
What do I do wrong here?
thank you
Vladimir
______________________________________________________________________________
100 MB gute Gründe. Jetzt im WEB.DE Club anmelden und Prämie sichern!
Superstars, Topevents und Wunschrufnummer inklusive - http://club.web.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: g++ & gcc
2001-12-19 8:55 g++ & gcc v.pekar
@ 2001-12-19 9:31 ` Claudio Bley
0 siblings, 0 replies; 2+ messages in thread
From: Claudio Bley @ 2001-12-19 9:31 UTC (permalink / raw)
To: v.pekar; +Cc: gcc-help
>>>>> "Vladimir" == <v.pekar@web.de> writes:
Vladimir> Hi! I have following problem: I have a piece of C code,
Vladimir> which can be compiled with gcc, but if I try to compile
Vladimir> it with g++ (I need it, because I'm going to use
Vladimir> io-streams), I get some errors of the kind: implicit
Vladimir> decloration of the function 'int atoi(...)' (the same
Vladimir> for bcopy(...) and bzero(...)). What do I do wrong
Vladimir> here? thank you Vladimir
Well, 'man atoi' reveals:
-----------------------------------------
SYNOPSIS
#include <stdlib.h>
int atoi(const char *nptr);
-----------------------------------------
So, for C++ you'd need to
#include <cstdlib>
Claudio
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-19 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 8:55 g++ & gcc v.pekar
2001-12-19 9:31 ` Claudio Bley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).