0

so I am sort of new to using VSCode, decided to do a switch from eclipse to vscode since it look more appealing to the eyes. So I have been following some setup videos and I have been running into this linker issue and cannot seem to get it fix, so here i am asking for some guidance. Thanks in advance. Here is the error output:

rgmac@MacBook-Pro trst % cd "/Users/rgmac/Desktop/VScode/c++ws/trst/" && g++ t.cpp -o t && "/Users/rgmac/Desktop/VScode/c++ws/trst/"t
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)
Alan Birtles
  • 32,622
  • 4
  • 31
  • 60
Shuu
  • 1

0 Answers0