我在我使用的 mysql 函数的源文件中遇到错误。我设置了包含路径和库。例如,错误是:当我调用 mysql_init
时,undefined reference to _mysql_init
。有趣的是,我可以点击函数,它会直接转到mysql.h
函数声明
最佳答案
假设您的项目构建良好:您可能希望让 Eclipse 重建其符号索引。
为此:右键单击项目并选择 Index->Rebuild
(另请参阅:eclipse C project shows errors (Symbol could not be resolved) but it compiles)
关于mysql - 无法在 Eclipse CDT Juno 中使用 mysql 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13517422/