C++ decorates the names of the functions with its type and parameters.
You have to use C linkage for those functions.

extern "C" { void func(...);}


South Wind wrote:

> Hello..
>
>    As we know, C functions adding '_' behind
>    can be called by a fortran program.
>
>    But it is useless to a C++ function.
>
>    The error will look like this
>      fortran_pro.o(.text+0x18): undefined reference to 'xxx_'
>
>    Could someone give a hints...
>
>     Thanks....

Reply via email to