#C++ librarys keep not getting detected

60 messages · Page 1 of 1 (latest)

subtle kiln
#

I just started c++ some days ago and did already write the simplest line of code which just prints hello. i did try to compile it a million times using mingw and like 6 other compiler from other sources. Every time i get a error telling me no such file or dictonary and it includes someting with Createprocess. I did search through forums and tutorials for 4 days and still struggle when i use visual studio instead of a simple notepad it already errors saying that iostream wont work and that i need to update include path but every guide wants me to use a different folder from the same file one time its lib another its bin where gcc.exe is located another time include folder. Yes i did include it in envoirement.

copper heronBOT
#

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.

worthy knot
#

Did you really use Visual studio or was it actually Visual studio code?

subtle kiln
#

code

worthy knot
#

Then you'd be better off using Visual studio.

zinc tiger
#

Consider using Visual Studio it includes compiler, debugger, intelliSense and also has plugin support

subtle kiln
worthy knot
#

VS code does not come with a compiler.

subtle kiln
subtle kiln
#

or smth

worthy knot
#

Use this:

subtle kiln
#

im a total beginner so idk what im even doing

copper heronBOT
#
How to Learn C++ Programming

We generally recommend a good book to learn the necessary fundamentals:

To actually write and run C++ code, you will need a compiler, editor, and debugger. We strongly recommend to start out using an IDE, which will provide all these tools for you:

<:microsoft:1165512917047853127> Windows
  • [Visual Studio](#1165492293810257920 message)
  • CLion
<:tux:1165505626894520361> Linux
<:apple:1165508607798943754> Mac
subtle kiln
subtle kiln
zinc tiger
#

check the Visual Studio quick tutorial

tribal grove
#

why you propaganda visual studio over code? its not hard to set up vscode without knowing anything in couple of days, and along with it learn many things

worthy knot
#

Because they tried and failed miserably.

subtle kiln
#

10gb is kinda big for vs :,/

worthy knot
#

It's not big at all really in 2025.

#

Like just my one game is easily 4 times that.

subtle kiln
subtle kiln
tribal grove
#

its ether russia or india

subtle kiln
worthy knot
#

If you can still afford the disk space Visual studio is still worth it.

subtle kiln
zinc tiger
#

Also I hate launch.json

subtle kiln
#

talking about slow internet my vs did freeze at 60% since like 14 minutes

tribal grove
#

you need only download vscode, install clangd(exsention), cmake extentions, and install cmake + build essential

#

if clang, then install clang itself, codelldb, and if newest version of clang then before set repository* to packet system

subtle kiln
tribal grove
subtle kiln
#

i can show the error rq

subtle kiln
#

hows that an error

tribal grove
subtle kiln
#

i only use 1 of them depending which useless tutorial i watch

#

or read

#

rn its something called mingw

tribal grove
#

even with worst compiler (msvc) i have only one issue - he not work normal with cmake without CMakePresets.json

#

other issues is about compiler itself not ide

subtle kiln
#

this is all i get from compiling

tribal grove
#

im quite sure its not compiler error tho xd02

subtle kiln
#

whats devenw.exe

tribal grove
subtle kiln
#

alr it works (i think) no error by using iostream but now theres no way to check docs because all are made for the code edition

subtle kiln
#

g++.exe: error: CreateProcess: No such file or directory

tribal grove
#

im quite sure its not compiler error but build system / environment or code itself

subtle kiln
#

mb for some reason g++ was installed but i needed to install every single feature in it

#

cool now it does the same and tell me iostream doesnt exist

#

"cout isnt defined"

#

alr it worked i needed to restart cmd to apply the scripts changes, ig thanks for help

#

!solved