Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash build.sh出错 #3

Open
Ha-rlan opened this issue Mar 1, 2023 · 9 comments
Open

bash build.sh出错 #3

Ha-rlan opened this issue Mar 1, 2023 · 9 comments

Comments

@Ha-rlan
Copy link

Ha-rlan commented Mar 1, 2023

fatal error: mysql/mysql.h: No such file or directory
在本地文件上查看了下没有,然后到这里来看好像也是没有这个文件的。

@Shangyizhou
Copy link
Owner

这里使用了 MySQL 为 C 语言提供的 API 连接数据库,在使用 C API 之前需要安装 MySQL 和 MySQL 的开发包 mysql-devel。
sudo apt-get install libmysqld-dev
你可能没有下载安装,所以本地是没有的

@Ha-rlan
Copy link
Author

Ha-rlan commented Mar 2, 2023

好的好的感谢,第一次使用c++连接mysql,之前没接触过

@Ha-rlan
Copy link
Author

Ha-rlan commented Mar 7, 2023

这里使用了 MySQL 为 C 语言提供的 API 连接数据库,在使用 C API 之前需要安装 MySQL 和 MySQL 的开发包 mysql-devel。 sudo apt-get install libmysqld-dev 你可能没有下载安装,所以本地是没有的

请问如果要在这个服务器的基础上进行改进,有什么方向吗

@dihuozw
Copy link

dihuozw commented May 17, 2023

bash build.sh为什么报很多错误

@Shangyizhou
Copy link
Owner

bash build.sh为什么报很多错误

有具体错误吗,可以贴出来吗

@dihuozw
Copy link

dihuozw commented May 18, 2023

一系列错误,不知道我执行的有没有问题
屏幕截图 2023-05-18 111419

@Shangyizhou
Copy link
Owner

一系列错误,不知道我执行的有没有问题 屏幕截图 2023-05-18 111419

上面已经提示了,你得编译器需要支持cpp 11标准,可以按照提示加上 -std=c++11 或者去博客搜索错误提示

@dihuozw
Copy link

dihuozw commented May 19, 2023 via email

@f6zx3000c14yhl9day
Copy link

一系列错误,不知道我执行的有没有问题 屏幕截图 2023-05-18 111419

你将set中设置的-std=c++11去掉
从上面加上set(CMAKE_CXX_STANDARD 11)应该能解决部分问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants