#Need help to install C++ and OpenGL on VS Code

20 messages · Page 1 of 1 (latest)

idle patio
#

Hi I want to learn C++ and OpenGL but I have difficulties to make it work in Code - OSS on linux, it either doesn't detect glad.h and can't compile or it does nothing when it's supposed to create a window. ( maybe it' because I use hyprland as a WM).

ember whale
idle patio
#

It should be, because i already use some java extentions

ember whale
#

@idle patio did you install the c++ extension?

idle patio
#

Yes

#

And when I click on the play button nothing happens

#

Same thing when I compile manuelly with gcc and g++

ember whale
#
// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}
``` does this work?
ember whale
#

@idle patio can you take a video please

idle patio
ember whale
idle patio
#

I tried to run with the run>start debugging and it tells me this

ember whale
# idle patio

@idle patio Open the folder for your C++ program from VS Code. Then from the Run menu, click "Add Configuration" to get a default configuration.

idle patio
#

it's named launch.json

ember whale
idle patio
#

Ok I'll do that, Thanks

ember whale