<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Long ago, I did this using named common blocks and extern C structs.
Why won't you use named common blocks? I understand the dangers of the
unnamed common, though.<br>
<br>
Fortran 90 seems to have more possibilities for data representation. I
never worked with it, but see an example at: <br>
<br>
<a class="moz-txt-link-freetext" href="http://gcc.gnu.org/ml/gcc-help/2008-01/msg00170.html">http://gcc.gnu.org/ml/gcc-help/2008-01/msg00170.html</a><br>
<br>
Jan<br>
<br>
Gerald I. Evenden wrote:
<blockquote cite="mid:200902171552.17277.geraldi.evenden@gmail.com"
type="cite">
<pre wrap="">In simple cases FORTRAN and C[++] are not too difficult to link but there is
one issue I can't find a solution in Google searching:
How do you handle C structures in FORTRAN? Do not include "common."
Just curious if anyone has an answer.
On Tuesday 17 February 2009 2:53:03 pm Arjan van Dijk wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi!
I compile and run my program on linux and Windows boxes.
Under Fortran-90 that is...
Now I would like to use Proj. I have 2 questions about this:
Question 1:
How do I generate/download an archive file (e.g. libproj.a)
that can be used from g95 under MinGW by just adding -lproj to the
compile command of my program?
The Windows binaries contain an executable and a dll, not a .a-file.
Can I just use the linux .a-file under MinGW? I guess not.
I downloaded the sources and called "./configure".
This went okay. Then I tried "make", but the whole thing
crashed... (see below this message for the rude curses it uttered)!
Question 2:
Are there any Fortran examples for using Proj?
Regards,
Arjan
</pre>
</blockquote>
<pre wrap=""><!----> ...
</pre>
</blockquote>
</body>
</html>