Hi all,
When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope
To avoid this problem I need to define
#define __GCC_BUILTIN
Any help wellcome.
Laurent Champon
Hi all,
When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope
To avoid this problem I need to define
#define __GCC_BUILTIN
Any help wellcome.
Laurent Champon
The following is from Colin Burgess who is the master for gcc/g++/etc
dev tools.
It would appear that there was a bug in the specs file.
Edit /usr/lib/gcc-lib/ntox86/2.95.2/specs
find
*cc1plus:
-fhonor-stdand change it to
*cc1plus:
%(cc1plus_spec) -fhonor-std -fno-builtin
Champon Laurent <webmaster@affa.net> wrote:
Hi all,
When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope >To avoid this problem I need to define
#define __GCC_BUILTINAny help wellcome.
Laurent Champon
–
===========================================
My public key can be found at
http://mama.indstate.edu/users/liug/key.txt
Thank’s for your help.
I’ll try this solution quickly.
Laurent C.
“LiuG” <liug@mama.indstate.edu> a écrit dans le message news:
9uti9s$l24$1@inn.qnx.com…
The following is from Colin Burgess who is the master for gcc/g++/etc
dev tools.
It would appear that there was a bug in the specs file.Edit /usr/lib/gcc-lib/ntox86/2.95.2/specs
find
*cc1plus:
-fhonor-stdand change it to
*cc1plus:
%(cc1plus_spec) -fhonor-std -fno-builtin
Champon Laurent <> webmaster@affa.net> > wrote:
Hi all,When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope >To avoid this problem I need to define
#define __GCC_BUILTINAny help wellcome.
Laurent Champon
\===========================================
My public key can be found at
http://mama.indstate.edu/users/liug/key.txt
This is with C++?
Try using all of the include files without .h
–
Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net
“Champon Laurent” <webmaster@affa.net> wrote in message
news:9utb0i$gpj$1@inn.qnx.com…
Hi all,
When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope >To avoid this problem I need to define
#define __GCC_BUILTINAny help wellcome.
Laurent Champon
\
Hello!
Champon Laurent wrote:
When I’m using stdlib.h I have :
‘abord’ ‘abs’ ‘exit’ are allready declared in this scope >To avoid this problem I need to define
#define __GCC_BUILTIN
I had the same problem when trying to use the atoi function and found
the following workaround:
#include
…
unsigned int base = std::atoi(argv[1]);
Don’t forget to compile using c++.
bye bye,
–
Ricky Ng-Adam, stagiaire laboratoire de robotique
(450) 652-8499 x 2757, local BR0.50
Hydro-Québec, Montréal, Canada