I am doing my uni course by following the inscructions for Mac that were given on the uni website.
This is what we are supposed to write:
#include <stdio.h>
int main(void) {
printf("C is cool!!!");
return 0;
}
This is what shows up in the console:
make all
Building target: SimpleProj
Invoking: MacOS X C Linker
gcc -o "SimpleProj" ./src/MyProg.o
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [SimpleProj] Error 1
16:51:54 Build Failed. 2 errors, 0 warnings. (took 129ms)
I have Eclipse CDT installed with a proper Java 10.
The sample "Hello World" program ran normally when I tried it. But now I ran into this.
Tried searching for similar issues online but those were different from mine. If you know any idea on how I would proceed, any tips are welcome.