How to include the mysql header?

后端 未结 5 1077
失恋的感觉
失恋的感觉 2020-12-06 19:43

I\'m building an open source project from source,

and it needs to include :

#if USE_MYSQL
#include 
#endif         


        
5条回答
  •  暖寄归人
    2020-12-06 20:13

    This will be entirely dependent on your build methods, whether that's using an IDE like Visual Studio, Eclipse, etc, or if you're using shell scripts and command lines in *nix.

    You will need to make sure that that file (mysql.h) exists in your 'includes' path.

    For example, in Visual Studio, you would go into:

    Project Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories

    And include the directory to which you have 'mysql.h' saved.

    Then, for your linker properties, repeat the steps and include the respective DLL/LIB file path in your Additional Library Directories

    This will differ greatly depending on your environment, so more information would be needed for exact step-by-steps. But this should explain the actual Problem.

提交回复
热议问题