help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query regarding mirating from g++ 2.8.1 on solaris 5.6 to 2.95 .2 on s


From: Arora, Sanjay
Subject: Query regarding mirating from g++ 2.8.1 on solaris 5.6 to 2.95 .2 on solaris 5.8
Date: Tue, 31 Jul 2001 03:59:23 -0400

Hi , 
  I am compiling my files on g++ 2.8.1 on solaris 5.6 perfectly fine,
but when I try to compile the same code using g++ 2.95.2 on solaris 5.8, I
get the
following errors :

g++    -I../include -I. -I/vobs/atdev/include -w
-I/vobs/om/src/cm/src/cli/client/include
-I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE -I/usr/local/include
-I/vobs/om/src/cm/src/cli/adapter/common/include -I/usr/local/include/g++
-c -o ../obj/CliClient.o ../src/CliClient.cxx
In file included from ../include/CliClient.hh:26,
                 from ../src/CliClient.cxx:30:
/opt/sfw/include/curses.h:500: declaration of C function `int
Perl_instr(char *)' conflicts with
/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/proto.h:203: previous
declaration `char * Perl_instr(char *, char *)' here
../src/CliClient.cxx: In method `void CliClient::init()':
../src/CliClient.cxx:124: implicit declaration of function `int
getlogin_r(...)'
../src/CliClient.cxx: In method `int CliClient::PreParse()':
../src/CliClient.cxx:353: implicit declaration of function `int wait(...)'
../src/CliClient.cxx: In function `int main(int, char **)':
../src/CliClient.cxx:413: declaration of C function `int main(int, char **)'
conflicts with
/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/proto.h:267: previous
declaration `int main(int, char **, char **)' here
*** Error code 1
make: Fatal error: Command failed for target `../obj/CliClient.o'
/vobs/om/src/cm/src/cli/client/build> 

Please help.

thanx 
sanjay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]