我正在尝试使用此命令行进行编译(在 OSX 中):
gcc -Wall upload-comments.c -l -o upload-comments -I/usr/local/mysql/include/ -L/usr/local/mysql/lib/ -lmysqlclient
它返回错误:
upload-comments.c:14:20: error: mysql.h: No such file or directory
mysql.h
显然在/usr/local/mysql/include/
为什么找不到头文件?
谢谢。