The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 5 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 6 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 7 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 8 from the relocation invalid symbol index 12
/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 9 relocation has invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 10 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 11 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 12 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 13 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 14 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 15 from the relocation invalid symbol index 13
/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 16 relocation has invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 17 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 18 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 19 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 20 from the relocation invalid symbol index 13
The/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_info) : 21 from the relocation invalid symbol index 22
/usr/bin/ld:/usr/lib/debug/usr/lib/i386 - - the gnu/Linux crt1. O (. Debug_line) : relocation 0 from the invalid symbol index 2
The/usr/lib/GCC/i686 - - the gnu/Linux 4.8/../../../i386 - - the gnu/Linux crt1. O: in function "_start" :
(. Text + 0 x28) : the "main" undefined reference
Collect2: error: ld returned 1 exit status
CodePudding user response:
Never use g + +, to learn,,,CodePudding user response:
GCC - v//see the GCC versionG + + v//see the g + + version
Yum list GCC - c + +//find the need to install the GCC g + + version
Displays the GCC - c + +. X86_64
Prior to install yum install GCC - c + +. X86_64
CodePudding user response:
This error I haven't met, see print information might be: problems appeared in the process of link, see if your dynamic libraries are "-l" specifies the; And check _start function implementation is legal; Check the main function related content,CodePudding user response:
You check program you write if you have any questionsCodePudding user response:
Command statement issued to look atCodePudding user response:
Confirmation is not defined under the main function,CodePudding user response:
I also encountered the same problem, check the main () is write wrong into mian ()