mneville
04-08-2002, 07:23 AM
Hi,
I hope this is the correct forum to ask my question. I have
the source code for a program called PHASE written in c++. It is a
genetic/haplotype analysis program from
www.stats.ox.ac.uk/mathgen/software.html
However, I have been unable to compile it using the make command.
I have created the aliases :
ln -s /usr/bin/cc /usr/bin/gcc
ln -s /usr/bin/c++ /usr/bin/g++
and have even tried editing the "Makefile" changing g++ to c++, all
to no avail. when typing %make (or %make big as the readme suggests)
I get the following output and error messages:
>rm -rf *.o
>g++ -O2 -DBIGDATASETS -I. -I.. -c phase.cpp
>g++ -O2 -DBIGDATASETS -I. -I.. -c indnode.cpp
>g++ -O2 -DBIGDATASETS -I. -I.. -c classpop.cpp
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h: In function `int
>__random_number<int>(int)':
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:852: instantiated
>from `random_shuffle<int *>(int *, int *)'
>classpop.cpp:930: instantiated from here
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: `lrand48'
>undeclared (first use this function)
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: (Each undeclared
>identifier is reported only once
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: for each function
>it appears in.)
>make[1]: *** [classpop.o] Error 1
>make: *** [big] Error 2
Can anyone out there see what may be the problem or suggest things to try.
thanks
Matt
I hope this is the correct forum to ask my question. I have
the source code for a program called PHASE written in c++. It is a
genetic/haplotype analysis program from
www.stats.ox.ac.uk/mathgen/software.html
However, I have been unable to compile it using the make command.
I have created the aliases :
ln -s /usr/bin/cc /usr/bin/gcc
ln -s /usr/bin/c++ /usr/bin/g++
and have even tried editing the "Makefile" changing g++ to c++, all
to no avail. when typing %make (or %make big as the readme suggests)
I get the following output and error messages:
>rm -rf *.o
>g++ -O2 -DBIGDATASETS -I. -I.. -c phase.cpp
>g++ -O2 -DBIGDATASETS -I. -I.. -c indnode.cpp
>g++ -O2 -DBIGDATASETS -I. -I.. -c classpop.cpp
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h: In function `int
>__random_number<int>(int)':
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:852: instantiated
>from `random_shuffle<int *>(int *, int *)'
>classpop.cpp:930: instantiated from here
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: `lrand48'
>undeclared (first use this function)
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: (Each undeclared
>identifier is reported only once
>/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:841: for each function
>it appears in.)
>make[1]: *** [classpop.o] Error 1
>make: *** [big] Error 2
Can anyone out there see what may be the problem or suggest things to try.
thanks
Matt