Moxa Technologies W311 Computer Hardware User Manual


 
ThinkCore W311/321/341 Linux User’s Manual Tool Chains for Application Development
5-10
Compilation for Applications
Windows tool chain is a cross compiler that can be used to compile Linux source code on a
Windows operating system, allowing programmers to develop projects on a Windows-based PC.
In this section, we describe the procedures you should follow to compile a project with the
Windows tool chain.
First, copy the source code of your project in the Windows tool chain’s installation directory. In
the example shown here, we want to compile the hello example provided in our CD-ROM. We
will copy the source code to /UC which is the root directory of the Windows tool chain. Check the
root directory, where you can find the hello directory.
/
Mkpasswd –l [-d] > /etc/passwd
Mkgroup –l [-d] > /etc/group
Note that the –d switch is necessary for domain users.
Jared_Wu@Jared_Wu ~
$ cd /
Jared_Wu@Jared_Wu /
$ ls –al
total 9
drwxrwx--- 9 Jared_Wu 4294967295 0 Nov 4 18:11 .
drwxrwx--- 9 Jared_Wu 4294967295 0 Nov 4 18:11 .
drwxrwx--- 2 Jared_Wu 4294967295 0 Nov 4 11:10 bin
drwxrwx--- 7 Jared_Wu 4294967295 0 Nov 4 11:10 etc
drwx------ 2 Jared_Wu mkpasswd 0 Nov 4 18:07 hello
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 insight.ico
drwxrwx--- 5 Jared_Wu 4294967295 0 Nov 4 11:10 lib
-rwxr-x--- 1 Jared_Wu 4294967295 53 Nov 4 10:12 moxa.bat
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 moxa.ico
drwxrwx--- 4 Jared_Wu 4294967295 0 Nov 4 18:11 tmp
drwxrwx--- 13 Jared_Wu 4294967295 0 Nov 4 11:06 usr
drwxrwx--- 6 Jared_Wu 4294967295 0 Nov 4 11:06 var
Jared_Wu@Jared_Wu /
$