> 데이터 베이스 > MySQL 튜토리얼 > redhat 6.0 编译mysql 和 gtk_MySQL

redhat 6.0 编译mysql 和 gtk_MySQL

WBOY
풀어 주다: 2016-05-31 08:49:46
원래의
971명이 탐색했습니다.

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, 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.
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿