Question
I've been trying to compile and link these 2 cpp files plus I have a header file also. For some reason I keep getting this
I've been trying to compile and link these 2 cpp files plus I have a header file also. For some reason I keep getting this error message and to tell you the truth, I have no idea where the problem is and any search I've done so far shows no answers. Some help would be greatly appreciated. I attached the two source codes.
Undefined symbols for architecture x86_64:
"_edata", referenced from:
_main in lab1a-7fc4d3.o
"_end", referenced from:
_main in lab1a-7fc4d3.o
"_etext", referenced from:
_main in lab1a-7fc4d3.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
#include extern int gcount; void swapper (int & fnum, int &snum)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started