#Problem when including OpenGL libraries

9 messages · Page 1 of 1 (latest)

haughty estuaryBOT
#

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 run !howto ask.

ebon field
#

So, for some reason I can't include the libraries, even thought my tasks.json is all set up acording to a video I found on YT.

#
    "version": "2.0.0",
    "tasks": [
        {
            "type": "cppbuild",
            "label": "C/C++: g++.exe build active file",
            "command": "C:\\msys64\\mingw64\\bin\\g++.exe",
            "args": [
                "-std=c++20",
                "-fdiagnostics-color=always",
                "-Wall",
                "-g",
                "-I.{workspaceFolder}/include",
                "-L.{workspaceFolder}/lib",
                "${workspaceFolder}/src/*.cpp",
                "${workspaceFolder}/src/glad.c",
                "${workspaceFolder}/lib/libglfw3dll.a",
                "-o",
                "${workspaceFolder}/app",
                "-framework",
                "OpenGL",
                "-framework",
                "Cocoa",
                "-framework",
                "IOKit",
                "-framework",
                "CoreVideo",
                "-framework",
                "CoreFoundation",
                "-Wno-deprecated"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "compiler: C:\\msys64\\mingw64\\bin\\g++.exe"
        }
    ]
}
#

Here's the folders and files

#

it still says theres no such file

tough osprey
#

a video I found on YT
You say it like it's a good thing

ebon field
#

bruh, I started openGL today

#

I don't know how to configure the libraries