gnu.g++.help
[Top] [All Lists]

Re: Cannot call a C module from Fortran

Subject: Re: Cannot call a C module from Fortran
From: Paul Pluzhnikov
Date: Tue, 23 May 2006 19:57:56 -0700
Newsgroups: gnu.g++.help, comp.lang.fortran
"Cottonwood" <google@xxxxxxxx> writes:

> qqmodlib.a(qqprint.o):qqprint.for:(.text+0x42): undefined reference to
> `qqcprint'
>
> What am I doing wrong?

We don't know, since you never told us:
- what system you are on,
- what your command line looks like.

The "standard" tool for debugging these kinds of problems is "nm".

What does "nm qqmidlib.a | grep qqcprint" say when you have "C"
module, and when you have Fortran one?

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>