Archives


- Beowulf
- Beowulf Announce
- Scyld-users
- Beowulf on Debian

[Beowulf] Problem with math.h

Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.

Search

Brian D. Ropers-Huilman bropers at cct.lsu.edu
Mon Apr 11 11:56:18 PDT 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-----



More information about the Beowulf mailing list