-
QuarteroLikes 0Problem Description
While following the Modern OpenGL 3D Game Tutorial, I got the error “undefined reference to `SOIL_load_image'” when trying to compile my project. I’m using VS Code and g++ as my compiler, and my compile command is the following:
C:\MinGW\bin\g++.exe -g C:\Users\quar\source\repos\GLFWOpenGL\GLFWOpenGL\main.cpp -o C:\Users\quar\source\repos\GLFWOpenGL\GLFWOpenGL\main.exe -lglfw3 -lglu32 -lglew32 -lopengl32 -IC:\SOIL2
My include line:
#include "SOIL2\SOIL2.h"
The directory C:\SOIL2 contains SOIL2.h and everything else.
I’m stumped. Any help appreciated
Login to reply