[CLN-list] compililing with cln doesn't work
Richard B. Kreckel
kreckel at ginac.de
Tue Sep 1 23:34:09 CEST 2009
Hi!
Marcel Schulz wrote:
> I have installed the CLN library version 1.3.0 and wanted to use it.
> however I am not able to compile even the simple fibonacci.cpp example.
> I have installed the library with ./configure --prefix=/home/schulz_m
> and i tried to use your documentation to set all the compiler flags
> appropriately.
> the original files after unpacking are under /home/schulz_m/cln-1.3.0
> and the fibon.cpp is in my home directory. after typing make test I get
> the following error (makefile and cpp, g++ version below):
>
>
> make test
> g++ -02 -I/home/schulz_m/include/ -Icln-1.3.0/include/ fibon.cpp -o test
> g++: unrecognized option '-02'
> /tmp/ccJKw2VF.o: In function
> `__static_initialization_and_destruction_0(int, int)':
> fibon.cpp:(.text+0x159): undefined reference to
> `cln::cl_random_def_init_helper::cl_random_def_init_helper()'
[...]
You are attempting to build a binary executable without linking to the
CLN library. Please read about the -l and -L compiler switches in the
compiler's documentation.
Oh, and that compiler option is -O2, with letter 'O', not number '0'.
-richy.
--
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>
More information about the CLN-list
mailing list