2014年5月5日 星期一

[bacon] My First Window Program on ubuntu 13.04


[bacon] My First Window Program on ubuntu 13.04



1. Download bacon package from Webpage



2. Download hug.bac



3. Create a Windows(GTK) program

 



REM setup proxy server for wget
REM Barry Kauler, my first BaCon GTK program

INCLUDE "/usr/share/BaCon/hug.bac"
INIT

mainwin = WINDOW("Proxy server setup", 400, 300)

REM endless gtk loop...
DISPLAY

4. Compile like following command
bacon test.bac

PS. If want see source code about c.
Please mkdir test at the first, then compile the code.
The compiler could not produce the binary of test.
So you can see the source code.

Reference:


Related Posts:

0 意見:

張貼留言