Error on compiling

Hi,
I try to compile a simple test project in VSCode on a mac. This project use the raylib library.
Here is the code:

#include “raylib.h”

int main()
{
InitWindow(250,250,“fred”);
}

an here is the response in my terminal:

[main.cpp 2023-02-06 11:17:56.927]
,Undefined symbols for architecture x86_64:
“_InitWindow”, referenced from:
_main in main-40bd3c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’ve searched to solve but can’t find anything.
Could you help me. Thanks

Hi Freddud,

Are you on MacOS? If so, what version?

Hi,
Yes I am on a mac on os 10.15

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms