CLion can't find .h files in /usr/include/mysql

已回答

I've created a new CMake project from legacy code.  The code compiles with make from the command line.  CLion can't compile because it can't find mysql.h, which is in /usr/include/myql.  I've added

include_directories(SYSTEM)

to the CMakeLists.txt file, and restarted CLion but it still fails with this error:

fatal error: mysql.h: No such file or directory
52 | #include <mysql.h>

 

 

0

Hi Dean!

Is a makefiles project originally? In this case you can try opening it in CLion using compilation database instead of converting to CMake: https://www.jetbrains.com/help/clion/managing-makefile-projects.html

0

请先登录再写评论。