Moxa UC-7110-LX [15/46] Compiling hello c

Moxa UC-7101-LX [15/46] Compiling hello c
UC-7101/7110/7112 Software User’s Manual Getting Started
2-7
Compiling Hello.c
The Tool Chain path is:
PATH=/usr/local/bin:$PATH
The UC-7101/7110/7112 CD includes several example programs. We use Hello.c to illustrate how
to compile and run applications.
Issue the following commands from your PC to compile Hello.c:
# cd /tmp/
# mkdir example
# cp r /mnt/cdrom/example/* /tmp/example
Go to the Hello subdirectory, and issue the command #make to compile Hello.c. Finally, execute
the program to generate hello and hello.gdb.
Uploading Helloto the UC-7101/7110/7112
To use FTP to upload hello to UC-7101/7110/7112, issue the following commands on the PC:
#ftp 192.168.3.127
ftp> cd /home
ftp> bin
ftp> put ./hello
ftp> quit
#telnet 192.168.3.127

Содержание

Похожие устройства

Скачать