[Beowulf] Problem with math.h

Brian D. Ropers-Huilman bropers at cct.lsu.edu
Mon Apr 11 14:56:18 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need to link against the math library. Include a -lm in your compile.

Fauzi said the following on 2005.04.11 11:09:
> Dear all,
> 
> I'm very newbie in parallel computing. I'm using Freebsd with mpi. I
> have problem when execute (./mpicc) my program. My program using math.h.
> When I execute there comment :
> 
> #./mpicc -o lat lat.c
> lat.o : In function 'main'
> lat.o(.text+0x51) : undefined reference to 'sin'
> 
> What happen with mpi? what is solution? Anybody can help me, please?
> 
> I'm sorry if my question so easy for you.
- --
Brian D. Ropers-Huilman  .:. Asst. Director .:.  HPC and Computation
Center for Computation & Technology (CCT)        bropers at cct.lsu.edu
Johnston Hall, Rm. 350                           +1 225.578.3272 (V)
Louisiana State University                       +1 225.578.5362 (F)
Baton Rouge, LA 70803-1900  USA              http://www.cct.lsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCWshSwRr6eFHB5lgRAkjDAKChVVLNMvJGBo1mJs1vPePZOG+QZwCg8QUv
nBS5XmqETkGeyMys+NQDHUQ=
=cXT5
-----END PGP SIGNATURE-----
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list