This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Makefile, libs and linkage


chuck wrote:
I'm trying to compile HEYU, a Unix/Linux program that talks to
a CM11-A interface ( the infamous ) X-10 controlers.  I have
.../crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2 that came with the
ARM-9 SBC. ------------
Make & Makefiles - I've searched the web - found squat.  Any words?
-------------
By using .../bin/arm-linux-gcc I've been able to do "-c [files].c" and now
I have 10 dot-O files and when I try gcc file1.o file2.o..... I get:
   sun.o(.text+0x164): In function `suntimes':
   : undefined reference to `sin'

Try adding -lm to the commandline. The sin and cos routines are in the math library.

(Which brand and model of SBC is it, by the way?)
- Dan


-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]