Error in My Code: Undefined Symbols for x86_64

  • Thread starter Thread starter Amany Gouda
  • Start date Start date
  • Tags Tags
    Code Error
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
Amany Gouda
Messages
29
Reaction score
0
I have received this error :
Fortran:
Undefined symbols for architecture x86_64:
"start", referenced from:

-u command line option

(maybe you meant: __gfortrani_library_start)

ld: symbol(s) not found for architecture x86_64

collect2: error: ld returned 1 exit status
what is this mean??

the code is :
Fortran:
program   exercise2

  integer:: i,j
  real,dimension (5,5)::A

  open(20,file='A.txt',status='old')  do i=1,5
  read(*,*)(a(i,j),j=1,5)
  end do

  do i=1,5
  write(20,*)(a(i,j),j=1,5)
  end do

close(20)

  end program exercise2
 
Last edited by a moderator:
on Phys.org
jedishrfu said:
WHat command are you using to run the code?
I am using gfortran in macbook air version 10.9.5
 
Amany Gouda said:
I am using gfortran in macbook air version 10.9.5
Could you show exactly the compiling command? The problem might be with your installation of gcc.
 
DrClaude said:
compiling command

sigmat-no-air:desktop amany$gfortran exercise2.f90