Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


gfortran linking errors on OS X 10.9

gfortran linking errors on OS X 10.9

gfortran linking errors on OS X 10.9

Greetings All,

I am new to the forums here and hoping to find some assistance from folks that have experience with compiling older FORTRAN code on OS X.

I am using the gfortran compiler on Mac OS X 10.9.5 with Xcode version 6.2 and the Xcode command line tools installed. I am performing the compilation and linking from the command line/Terminal (i.e. not using an Xcode project).

Here's what I've got:


gfortran -arch i386 -c couple.f
gfortran -arch i386 -c abortc.f
gfortran -arch i386 -c amat.f
gfortran -arch i386 -c backsub.f
gfortran -arch i386 -c bathy.f
gfortran -arch i386 -c bdf.f
gfortran -arch i386 -c bessj0.f
gfortran -arch i386 -c bessy0.f
gfortran -arch i386 -c bmat.f
gfortran -arch i386 -c botdeps.f
gfortran -arch i386 -c bounds.f
gfortran -arch i386 -c cdfun.f
gfortran -arch i386 -c cdj0.f
gfortran -arch i386 -c cdsrt.f
gfortran -arch i386 -c cdtan.f
gfortran -arch i386 -c cexib.f
gfortran -arch i386 -c cexibd.f
gfortran -arch i386 -c cexiw.f
gfortran -arch i386 -c cexiwb.f
gfortran -arch i386 -c cexiwd.f
gfortran -arch i386 -c chdh.f
gfortran -arch i386 -c choldc.f
gfortran -arch i386 -c cjdj.f
gfortran -arch i386 -c clineqs.f
gfortran -arch i386 -c cpres.f
gfortran -arch i386 -c crscup.f
gfortran -arch i386 -c csds.f
gfortran -arch i386 -c csymeig.f
gfortran -arch i386 -c cupb.f
gfortran -arch i386 -c cupbw.f
gfortran -arch i386 -c cupw.f
gfortran -arch i386 -c cupwb.f
gfortran -arch i386 -c cvmult.f
gfortran -arch i386 -c cwns.f
gfortran -arch i386 -c dreal.f
gfortran -arch i386 -c file.f
gfortran -arch i386 -c foresub.f
gfortran -arch i386 -c egnval.f
gfortran -arch i386 -c galrkn.f
gfortran -arch i386 -c gama0.f
gfortran -arch i386 -c gama00.f
gfortran -arch i386 -c genabc.f
gfortran -arch i386 -c header.f
gfortran -arch i386 -c hk01.f
gfortran -arch i386 -c hk02.f
gfortran -arch i386 -c indep.f
gfortran -arch i386 -c indexx.f
gfortran -arch i386 -c input.f
gfortran -arch i386 -c mgs.f
gfortran -arch i386 -c mmult.f
gfortran -arch i386 -c propm.f
gfortran -arch i386 -c prtmat.f
gfortran -arch i386 -c prttl.f
gfortran -arch i386 -c rcf.f
gfortran -arch i386 -c rwprof.f
gfortran -arch i386 -c tmmult.f
gfortran -arch i386 -c zcexib.f
gfortran -arch i386 -c zcexiw.f
gfortran -arch i386 -o couple couple.o 	abortc.o amat.o backsub.o bathy.o bdf.o         bessj0.o bessy0.o bmat.o botdeps.o bounds.o 	cdfun.o cdj0.o cdsrt.o cdtan.o cexib.o cexibd.o         cexiw.o cexiwb.o cexiwd.o chdh.o         choldc.o cjdj.o         clineqs.o cpres.o 	crscup.o csds.o csymeig.o cupb.o 	cupbw.o cupw.o cupwb.o cvmult.o cwns.o dreal.o 	file.o foresub.o egnval.o galrkn.o gama0.o 	gama00.o genabc.o header.o hk01.o hk02.o 	indep.o indexx.o input.o mgs.o mmult.o 	propm.o prtmat.o prttl.o rcf.o rwprof.o 	tmmult.o zcexib.o zcexiw.o
Undefined symbols for architecture i386:
  "_date_", referenced from:
      _header_ in header.o
  "_timer_", referenced from:
      _MAIN__ in couple.o
ld: symbol(s) not found for architecture i386
collect2: error: ld returned 1 exit status
make: *** [couple] Error 1 

Any assistance or input would be greatly appreciated.

All the best

RE: gfortran linking errors on OS X 10.9

It would've been nice to see you put some minimal effort, research towards solving this problem.

You really need to look at date() and timer() and see how you can replace them with what may be available now (date_and_time()?).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close