I'm trying to compile Bambus on an Ubuntu server :
Linux version 2.6.27-7-generic (buildd@yellow) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 06:40:41 UTC 2008
When I type make I have this error :
g++ -I../TIGR_Foundation_CC/ -g -c grommit.cc
In file included from ../TIGR_Foundation_CC/Options.hh:23,
from ../TIGR_Foundation_CC/TIGR_Foundation.hh:15,
from GrpDefs.hh:86,
from GrpNode.hh:48,
from newgrp.hh:35,
from grommit.cc:116:
../TIGR_Foundation_CC/getopt.hh:109: error: declaration of C function 'int getopt()' conflicts with
/usr/include/unistd.h:458: error: previous declaration 'int getopt(int, char* const*, const char*)' here
grommit.cc: In function 'int main(int, char**)':
grommit.cc:236: warning: format '%s' expects type 'char*', but argument 3 has type 'char (*)'
make: *** Error 1
make: Nothing to be done for `all'.
I've triied different things find on internet but I'm stuck !
Any help ?
Thx,
Emmanuelle
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to compile Bambus on an Ubuntu server :
Linux version 2.6.27-7-generic (buildd@yellow) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 06:40:41 UTC 2008
When I type make I have this error :
g++ -I../TIGR_Foundation_CC/ -g -c grommit.cc
In file included from ../TIGR_Foundation_CC/Options.hh:23,
from ../TIGR_Foundation_CC/TIGR_Foundation.hh:15,
from GrpDefs.hh:86,
from GrpNode.hh:48,
from newgrp.hh:35,
from grommit.cc:116:
../TIGR_Foundation_CC/getopt.hh:109: error: declaration of C function 'int getopt()' conflicts with
/usr/include/unistd.h:458: error: previous declaration 'int getopt(int, char* const*, const char*)' here
grommit.cc: In function 'int main(int, char**)':
grommit.cc:236: warning: format '%s' expects type 'char*', but argument 3 has type 'char (*)'
make: *** Error 1
make: Nothing to be done for `all'.
I've triied different things find on internet but I'm stuck !
Any help ?
Thx,
Emmanuelle