Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
VSC not working on MacOS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xhaven" data-source="post: 1841792" data-attributes="member: 403895"><p>When trying to compile a simple program I am getting this error using Visual Studio Code on my MacBook Pro. Trying to avoid using Pico as my editor because it sucks. Please help!</p><p></p><p>eph525@Anthonys-MBP MAE 2360 % g++ Test.c</p><p>clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-W</p><p>deprecated]</p><p>Undefined symbols for architecture x86_64:</p><p> "_main", referenced from:</p><p> implicit entry/start for main executable</p><p>ld: symbol(s) not found for architecture x86_64</p><p>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p><p>eph525@Anthonys-MBP MAE 2360 % </p><p></p><p>My code is this:</p><p></p><p>#include<stdio.h></p><p> </p><p>int main()</p><p>{</p><p> printf("Hello world");</p><p> return 0;</p><p>}</p></blockquote><p></p>
[QUOTE="xhaven, post: 1841792, member: 403895"] When trying to compile a simple program I am getting this error using Visual Studio Code on my MacBook Pro. Trying to avoid using Pico as my editor because it sucks. Please help! eph525@Anthonys-MBP MAE 2360 % g++ Test.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-W deprecated] 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) eph525@Anthonys-MBP MAE 2360 % My code is this: #include<stdio.h> int main() { printf("Hello world"); return 0; } [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
VSC not working on MacOS
Top