Hello, I am trying to compile a program to use mysql-connector-c++. I'm working on Mac and installed via homebrew(package utility). It linked it to /usr/local/lib but I still can not manage to get my library connected. My make file keeps giving an error of lib not found when I run.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
CC = g++
CFLAGS= -c -Wall
main.out: main.cpp classes/database.cpp classes/configuration.cpp
$(CC) $(LINKFLAGS) -o main.out main.cpp classes/database.cpp classes/configuration.cpp
#END OF MAKE FILE
For reference, -lGL doesn't actually mean to link against "/usr/lib/libGL.so", it means to search through every directory the linker is provided (which by default is "/usr/lib/", "/usr/local/lib/", and a few others that are distro specific). Then link to the *first* instance of that library found.