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 4 of 9 Topic 8540 of 8908
Post > Topic >>

Re: calling C from fortran

by rudra <bnrj.rudra@[EMAIL PROTECTED] > Jul 23, 2008 at 07:06 AM

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)
test.f90:7.15:

       INTEGER(C_INT) :: r
              1
Error: Parameter 'c_int' at (1) has not been declared or is a
variable, which does not reduce to a constant expression
test.f90:13.6:

  bit=operating_system()
     1
f951: internal compiler error: Segmentation fault
Please submit a full bug re****t,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html>
for instructions.

while gfortran is 4.4    ....will you plz check thes?
 




 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 Wed Nov 19 7:41:37 CST 2008.