Contact US

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!

*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



Hi everyone,

I compile and execute my program and it says on the context menu.

collect2: ld returned 1 exit status

Anyone knows what it means???

Thank you,


RE: Compiler

It's error from the linker.
Maybe before this error you will find an error like undefined reference to proc_name
Search for the file where the proc_name is defined and include it into your compile+link command.

RE: Compiler

C:\Users\Komatsu\AppData\Local\Temp\ccwDhUZn.o: In function `aurora':
C:/Users/Komatsu/Desktop/Iniciação Científica/Programas Fortran/aurora3.f:10: undefined reference to `_gettim_'
C:/Users/Komatsu/Desktop/Iniciação Científica/Programas Fortran/aurora3.f:125: undefined reference to `_gettim_'
collect2: ld returned 1 exit status

RE: Compiler

You need to find out where the subroutine or function gettim is.

RE: Compiler

I'm using Force 2.0
Thanks for your support mikrom =)

RE: Compiler

I thought the Force project died 10 years ago when the Brazilian guy who started it stopped maintaining it. Anyway, if I remember correctly, Force uses G77 or possibly G95/GFortran.

RE: Compiler

Anyway, it seems that you try to compile a program which was originally developed for intel fortran compiler with another fortran compiler. To make this possible, you need to replace all non standard intel specific functions with standard fortran functions.

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