Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: calling C f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 8540 of 8767
Post > Topic >>

Re: calling C from fortran

by Dave Seaman <dseaman@[EMAIL PROTECTED] > Jul 23, 2008 at 02:25 PM

On Wed, 23 Jul 2008 07:06:41 -0700 (PDT), rudra wrote:

> dear fj, while i am running the code by c-p your code, i am getting
> error promp:

> $ gcc -c operating_system.c
> $ gfortran test.f90 operating_system.o
> test.f90:6.24:

>        USE iso_c_binding
>                        1
> test.f90:5.31:

> BIND(C,name="operating_system")
>                               2
> Error: USE statement at (1) cannot follow attribute declaration
> statement at (2)

The compiler is telling you that what's on line 6 cannot follow what's on
line 5.  Did you try reversing the order of those two lines?

-- 
Dave Seaman
Third Circuit ignores precedent in Mumia Abu-Jamal ruling.
<http://www.indybay.org/newsitems/2008/03/29/18489281.php>
 




 9 Posts in Topic:
calling C from fortran
rudra <bnrj.rudra@[EMA  2008-07-22 22:59:49 
Re: calling C from fortran
=?iso-8859-1?q?J=F6rgen_T  2008-07-23 08:57:16 
Re: calling C from fortran
fj <francois.jacq@[EMA  2008-07-23 02:02:16 
Re: calling C from fortran
rudra <bnrj.rudra@[EMA  2008-07-23 07:06:41 
Re: calling C from fortran
Dave Seaman <dseaman@[  2008-07-23 14:25:56 
Re: calling C from fortran
"James Van Buskirk&q  2008-07-23 09:40:52 
Re: calling C from fortran
Dave Seaman <dseaman@[  2008-07-23 19:57:43 
Re: calling C from fortran
fj <francois.jacq@[EMA  2008-07-23 09:03:42 
Re: calling C from fortran
Ron Ford <ron@[EMAIL P  2008-07-25 01:34:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:58:47 CDT 2008.