redhat 6.0 编译mysql 和 gtk
来源:互联网 发布:家装招标软件 编辑:程序博客网 时间:2024/06/06 05:22
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.
<This method is used for the default installation at OS installation. If you install gtk yourself, maybe it can't be work using this way.>
MYSQL was also made me confused when I began to compile it.
Actually, 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.
0 0
- redhat 6.0 编译mysql 和 gtk
- redhat gtk+/gnome 编译问题解决
- gtk+和Directfb交叉编译
- gtk的安装和gtk程序的编译
- gtk程序编译和链接过程
- Ubuntu下GTK安装、编译和测试
- 编译GTK
- Redhat Linux 编译安装MySQL-5.5.27
- Ubuntu10和RedHat上编译Eucalyptus(桉树)
- redhat 下编译 oci8 和 pdo_oci
- GTK和GTK+介绍
- Linux redhat 6.0 mysql安装
- redhat安装mysql和phpMyAdmin教程
- Ubuntu下GTK的安装、编译和测试
- Ubuntu下GTK的安装、编译和测试
- Ubuntu下GTK的安装、编译和测试
- Ubuntu下GTK的安装、编译和测试
- Ubuntu下GTK的安装、编译和测试
- vsftp介绍使用
- JAVA 指定打印机进行打印
- 容易混淆的函数
- ubuntu下安装jre的步骤
- 抽象类和接口的区别
- redhat 6.0 编译mysql 和 gtk
- 递归创建目录
- XML简单介绍,DTD详解
- 关于字面量
- HashMap的hash算法释疑---常用的三种Map HashMap LinkHashMap TreeMap
- 前言
- MySQL 性能优化的最佳20多条经验分享
- Builder - 生成器模式
- 如何指定进程运行的CPU