#I want to know the best way to configure an c/c++ project on vscode

32 messages · Page 1 of 1 (latest)

oak loom
#

im to use ucrt64 to build my project, should i just put the bin folder on the variable thing? or its possible to use like https://www.msys2.org/docs/ides-editors/
i want to each project use a different version, like i was working with 32 bit and 64, i want to configure it for each project, i also want to easy run the program, what is tge best way to do it?

formal boltBOT
#

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.

next harness
#

Both ways work

#

(both PATH and running the msys2 shell)

#

If you really need different msys2 environments, you could put C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -c "gcc file.cpp ...." directly into your tasks.json

#

(though why would you want 32 bits nowadays?)

#

Another approach is to start VSC from a msys2 terminal with the right environment, to put the respective compiler into PATH. Then you can run it from tasks.json normally

oak loom
#

what start vsc from mysys2??????

next harness
#

Yeah

#

C:/msys64/msys2_shell.cmd -ucrt64 -full-path, then run code from that shell

oak loom
next harness
#

Did you add -full-path?

oak loom
#

probably

#

let me try again

#

wait

#

i forgor

#

i use vscodium instead of vscode

#

@next harness

next harness
#

Ok. Figure out how its command is called

#

codium? vscodium?

oak loom
#

idk

#

i just add the binaries folder to the path

#

idk if its a problem

#

calling the exer trough it has the same effect?

#

@next harness

next harness
#

Yeah that should work

#

But make sure VSC is closed before doing this

oak loom
#

o

#

its codium

#

thx dude

#

its worked

#

!solved