From: Maurice Lombardi <Maurice.Lombardi@ujf-grenoble.fr> To: Nathalie Jarosz <jarosz_n@hotmail.com>, gpc <gpc@gnu.de> Subject: Re: beta distribution Date: Fri, 30 Jun 2000 17:48:58 +0200 Well it is simple enough to be made by hand (there are no dependencies). With GNU tools type:
cd src gcc -c -O2 com.c gcc -c -O2 linpack.c gcc -c -O2 randlib.c # ^uppercase: meand Optimize # at this point you have created com.o linpack.o randlib.o # to put them in a library librandlib.a type: ar -rv librandlib.a com.o linpack.o randlib.o ranlib librandlib.a # ^ no d: it is a system function
#then move librandlib.a into a system wide library directory e.g. /usr/local/lib # randlib.h include /usr/local/include All seems to be ok until here but when I check the result:
#to check the result cd ../test gcc -O2 -o tstbot tstbot.c -lrandlib ^lowercase: means output
the following message appears: tstbot.c: In function `main': tstbot.c:11: warning: return type of `main' is not `int' Undefined first referenced symbol in file log /usr/local/lib/librandlib.a(randlib.o) pow /usr/local/lib/librandlib.a(randlib.o) sqrt /usr/local/lib/librandlib.a(randlib.o) exp /usr/local/lib/librandlib.a(randlib.o) ld: fatal: Symbol referencing errors. No output written to tstbot collect2: ld returned 1 exit status What is the problem now? Thanks in advance, Nathalie ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
participants (2)
-
Nathalie Jarosz -
Peter Gerwinski