#Include error

12 messages · Page 1 of 1 (latest)

scenic mica
#

Yo guys I’m new to c++ and I tried to install raylib so the next step was to run a pre made script to test if raylib worked but I get an error because include can’t find raylib.h (I took the script from the wiki)
error:#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\rober\Desktop\c++\Raylib-CPP-Starter-Template-for-VSCODE-main\main.cpp).
cannot open source file "raylib.h"

late mantleBOT
#

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.

azure vortex
#

First up, it's better to learn the basics of C++ before trying to use a library.
Second, it's easier to use Visual studio than Visual studio code.

You need to add the directory containing the header into the list of include paths.

scenic mica
azure vortex
#

This is part of C++ basics.

scenic mica
#

well i just dont understand that

azure vortex
#

So you have not specified the location of the header file for the compiler to find.

azure vortex
#

Try searching for the way to add an include path.

scenic mica
#

ok

#

thx for help