#CAN SOMEONE HELP ME WITH VSCODE

26 messages · Page 1 of 1 (latest)

coarse mountain
#

so im trying to deploy c++ on vscode , i almost did everything and its not helping 😦

covert valeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@coarse mountain

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

coarse mountain
#

which one should i downlaod

sonic pond
#

Actually no, I'm dumb

#

Scratch that

#

This is a C++ program, but you named the file with the .c extension

#

Rename it to end with .cpp

coarse mountain
sonic pond
# coarse mountain

Screenshot the entire screen. Are there any more errors in the terminal tab at the bottom?

coarse mountain
sonic pond
#

Can you scroll up a bit?

#

The first few lines of a error are always the most important ones

coarse mountain
sonic pond
#

Aha, see how it still uses gcc.exe instead of g++.exe. That's a C compiler, not a C++ one

#

What do you have in your tasks.json?

#

Probably need to change it there

midnight canyon
# coarse mountain

try using the g++ demo.cpp in the terminal, if all works good
do .\a.out

#

if this works that means gcc is installed correctly

#

you then go install some vs code extensions

#

just type vs code for c and follow along

#

don't install gcc again though

coarse mountain
#

what is tasks.json

sonic pond
coarse mountain
#

ty

covert valeBOT
#

@coarse mountain Has your question been resolved? If so, type !solved :)