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....
- stl question Fenglou Mao
- Re: stl question Raju K V
- G++ & Fortran South Wind
- Burak Serdar
