Return to Linux and C

Source: Internet
Author: User
Return to Linux and C-general Linux technology-Linux programming and kernel information. The following is a detailed description. When GM took a game order using Linux and C to me, the name of lanbo appeared suddenly... Fortunately, everything had a wonderful start:

1. SuSe Linux 10
During the centuries-old war between Windows and Linux, the desktop system has always been the top worry-free tie in Windows. But this time, the alternative Suse gently broke a brick on it. The first is the interface. After selecting the appearance themes of KDE and Suse-default, Suse PK WinXP won't go down any way in my aesthetic formalistic opinion, and it is a strong winner in Win2000. More importantly, Suse is easy to use. Right-click always has a friendly function. WinXP may have to install plug-ins such as Power Toys, beautiful Yast control panel, and automatic online update of all software packages.

Moreover, Suse's K-header software is unambiguous, and Kate can rival UltraEdit. Konsole is a very useful console. KDE can communicate with im software such as MSN at the same time ..... although the number of applications is still not enough, google and its principles are rampant, and more applications are moving to the Internet. As long as FireFox continues to update, microsoft's advantages in desktop applications will be diluted.

However, Suse Linux is an alternative in Linux. Looking at Redhat's fedora core 4, we can find that the Linux Desktop's ugly and difficult-to-use tradition remains faithful. However, this kind of aesthetic person does not have the virtues of low-profile, google will be able to see the promotion "Novell threatened Suse 9.3 to let the Windows class. In my opinion, at least the speed of the desktop program should be solved first.

2. make
Although Suse is good, it will soon face the "make" guy. In my experience, the following three lines of commands can be smoothly exported, and the installed program is too rare.

>./Configure
> Make
> Make install

This is exactly the case for installing a game using the SDL library. First, it is reported that libSDL_image.so cannot be found. It turns out that the so in/usr/lib contains the version: libSDL_image_1.2.so, and link is added. Then I reported that I could not find SDL_image.h, and ran to the SDL main site to complete the source code... the problem persists. If the team has not been beaten for a long time, the team will often get stuck.

3. The increasingly complicated kernel module HelloWorld
Because I/O ports need to be directly controlled, let's take a look at the kernel module. Download a Chinese version of <Linux Device Driver 2nd> every day. hello. c is simple, and gcc-c hello. c can be compiled. But when it was my turn to gcc, there were two screen errors. I did not expect my personal character values to fall to this level. After a while, I found that this "Chinese version" is about linux kernel 2.4, and it has changed to 2.6. We had to re-use emule to talk about the version 3rd of kernel2.6, and then cooperate with google to understand that hello. c In 2.6 has changed. We also need to pre-install kernel-devel and use the new kbuild System for compilation:

First, write an incomplete Makefile that is unknown:

Obj-m: = hell. o

Then compile with this command to obtain the new hello. ko file:

Make-C/lib/modules/'uname-R'/build M = 'pwd' modules

Even worse, I started using Suse 9.3 didn't bring a kernel-devel.rpm, made me want to use kernel-source, configure, compile the kernel again ....

It's a terrible experience to be dragged to the ground for a helloword, 2.4-> the trend of complexity in 2.6 makes me feel a little cool when I am out of the door. If the world of programs is not getting simpler and more complex, and more things need to be completely re-learned because they cannot rely on past experience to play the role of the same evidence, isn't the job of our old guys very dangerous.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.