Compiling multiple C++ files in Visual Studio Code (Ubuntu 22.04)

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You have no idea how long I've been racking my brain trying to figure this out! Thank You!

davidnewman
Автор

Thank you from all my heart, i've been stuck in this for a day and half until i found your video and fixed my problem

Mario-xcdz
Автор

Just started using VS Code, and your tutorial has been exceptionally helpful.

williamkiarie
Автор

I sure love you. I may have been 10 hours trying to compile my damn code, but in the end you saved me. It was a damn torture but it is compiled!

ismaelfernandezmendez
Автор

Hey man, can you make a tutorial explaining about the c_cpp_properties.json, launch.json, task.json and its components . That would be helpful.

uegmxek
Автор

after seeing 40 videos and 30 articles finally found your video helpful thanks a lot

vrajsavani
Автор

This was so useful, it need to be the top result when you search for how to compile c++.

rldslix
Автор

Thanks, this was exactly what I was looking for. I've been trying to get more experience with C++.

ryanantony
Автор

Thanks for this, very useful. Just to add that once I got this working using your tips, I adapted this to have "-g", "${file}", "${workspaceFolder}/classes/*.cpp", and by doing this I could have several "test scripts" all using the included classes I'd made.

peterwake
Автор

I did the same but I’m using clang/clang++ (so I edited this under the clang/clang++ section) and it still doesn’t work for me. It gives me a linker error and still says that the functions I’ve called are undefined

Rapidspiders
Автор

Great tip, thank you! Is there a way to add a "Build" icon on the status bar?

Bamber
Автор

Thank you very much! This video is really helpful!!!!

vgqjcvh
Автор

Hallelujah !!!! Finally someone got it straight to the point.

AlexRoman-dvuo
Автор

In my windows vs code with mingw, it didn't work initially .
Finally it worked, nice tutorial
👍

pankaj_yadav
Автор

Can you explain what to do when you have multiple folders. For example folder 1 = cordic_fucntion, folder 2 = taylor series. I want ot be able to run the two programs seperately by pressing play when on the specific file (tb_taylor, tb_cordic)

wesleytaylor-rendal
Автор

Great it worked finally! Thanks! Do you know how to get the same result with the Code Runner extension?

Rodrigoooo
Автор

I have a problem, why when I try to use another file it gives me an output error -1?

hugogarcia
Автор

Thank you so much for saving my time <3 Just one question, can I edit the default 'tasks.json' so whenever it's created I don't have to modify it again?

VantomChannel
Автор

Thank you so much mate, I spent literally DAYS trying to find solution to this...
Also, may I ask how can I modify the "${workspaceFolder}/*.cpp" so it would compile all the .cpp files in the subdirectories too? I have those files included in path from c_cpp_properties.json I suppose, but they don't get compiled.

JK-ddvn
Автор

I have no suggestions within the json file

AD-lyzk