www.un.org/spanish/ecosoc 这是我的发言。
SRC_DIR = src
BUILD_DIR = build/debug
CC = clang++
SRC_FILES = $(wildcard $(SRC_DIR)/*.cpp)
OBJ_NAME = game
INCLUDE_PATHS = -Iinclude
LIBRARY_PATHS = -Llib -Llib//Users/baguma/Downloads/glad-3 -Llib/GL
COMPILER_FLAGS = -std=c++11 -Wall -O0 -g -arch x86_64
LINKER_FLAGS = -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lGLEW
all:
$(CC) $(COMPILER_FLAGS) $(LINKER_FLAGS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(SRC_FILES) -o $(BUILD_DIR)/$(OBJ_NAME)
clean:
rm -r -f $(BUILD_DIR)/*
This is the error I m getting:
Undefined symbols for architecture x86_64:
"_gladLoadGLLoader", referenced from:
_main in main-d336bf.o
"_glad_glViewport", referenced from:
framebuffer_size_callback(GLFWwindow*, int, int) in main-d336bf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
利用开放Gl、冰川和喜悦编制方案
我看不出有任何帮助。