#Need help with debug file
27 messages · Page 1 of 1 (latest)
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.
Need help with debug file
I just started using visual studio code so I have no idea how I can fix this
where can I find the build log?
sorry if these are dumb questions, I just started working with code
what do you mean?
you'll have had to write a tasks.json, launch.json, and c_cpp_properties.json
no?
I think I found what you meant, it gives me this:
are you using clang instead of clang++?
under .vscode I have tasks.json but not the others
you'll want to use clang++ for C++, not clang
oh okay
btw, if you're on mac, consider using Xcode instead of vscode
Oh okay
first I'll have to do a bit of updating though
haven't updated my macbook the last 2 years
the error you shared means the linker can't find the std library
I don't use mac, but probably the path to solve is to understand how mac searches for the std library on your system when compiling it with clang, I assume there will be default paths it searches for and if it can't find the std on them it throws the error
is not that it can't find the stdlib, it's that the stdlib isn't being linked in the first place. the cause of that is almost certainly that they're using clang rather than clang++.