Error in My Code: Undefined Symbols for x86_64

  • Thread starter Thread starter Amany Gouda
  • Start date Start date
  • Tags Tags
    Code Error
Click For Summary
The error message "Undefined symbols for architecture x86_64" indicates that the linker cannot find the entry point for the program, which is typically the "start" symbol. This issue often arises from an improper installation of the gfortran compiler or incorrect compilation commands. The user is attempting to compile a Fortran program using gfortran on a MacBook Air running version 10.9.5. The compilation command used is "gfortran exercise2.f90." To resolve the issue, it is suggested that the user check the installation of gfortran, as it may not be installed correctly. Proper installation and configuration of the compiler are crucial for successful compilation and execution of Fortran programs.
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:
Technology news on Phys.org
WHat command are you using to run the code?
 
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
 
Then gfortran is not installed properly.
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
1K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K