Re: Problems with linking C-code found from f2c


[ Follow Ups ] [ Post Followup ] [ Netlib Discussion Forum ] [ FAQ ]

Posted by Massimo Gaspari on March 23, 1998 at 09:49:12:

In Reply to: Problems with linking C-code found from f2c posted by Åslaug Grøvlen on March 16, 1998 at 08:47:50:

: Hi. I have problems with linking the C-code that I got
: from the f2c-converter. I get the following error
: messages:

: /bin/ld: Unsatisfied symbols:
: sin (code)
: cos (code)
: endpic_ (code)
: pow_dd (code)
: s_wsle (code)
: vport_ (code)
: s_rsle (code)
: sofcha_ (code)
: e_wsfe (code)
: .
: .
: .
: make: *** [main] Error 1

: The subroutines listed are "from everywhere",
: general C-routines, libf2c-routines etc.

: Can anyone help me? Thanks.

: Regards,
: Åslaug Grøvlen

The right command to link f2c-code is

cc ..... -lf2c -lm

Hope this help

Massimo



Follow Ups: