NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libm trigonometric functions and i387



On Wed, Feb 25, 2009 at 02:57:22PM -0500, Taylor R Campbell wrote:
> 
> Curiously, my attempts to statically link the attached file fail:
> 
> % gcc -c test.c -o test.o
> % gcc -static -lm test.o -o test

This is incorrect syntax on the compiler command line.  The order of
objects to be linked together matters!  You are not trying to resolve
symbols wanted by libm using test.o, after all.

Thor


Home | Main Index | Thread Index | Old Index