• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

redhat 6.0 编译mysql 和 gtk_MySQL

mysql 搞代码 4年前 (2022-01-09) 24次浏览 已收录 0个评论

Redhat

When I first time compile the gtk programs, it occurred many errors.

It said that many functions undefined. You must know that the compiler can’t find the defines of them.Then you should add the correct path for the compiler manually, next you will succeed compiled.
But how does it works?Use the command like this: $:gcc -o filename filename.c `pkg-config –cflags –libs gtk+-2.0`.Behind the filename.c we use “the Backward apostrophe”-below the esc key.

MYSQL was also made me confused when I began to compile it.Actually本文来源gao($daima.com搞@代@#码$网, the Linux operating system was designed by the best hackers in the world. So it designed by a purpose that is user are best programmer.
That means users must configure everything themselves. So you find many errors when using the linux OS, but please don’t scare because it can make become a good hacker.
OK, we turn back. In order to compile the programs contained mysql functions, just add the parameter$(mysql_config –cflags –libs). This is a environment variable, you can use command “echo $(mysql_config –cflags –libs)” to check what it is.eg: $: gcc filename.c $(mysql_config –cflags –libs) -o filename

As a Linux programmer, what you do is doing everything yourself. But I don’t say Linux is hard to learn.In fact, it is easy to learn.


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:redhat 6.0 编译mysql 和 gtk_MySQL
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址