[futurebasic] Re: [FB] Hello World

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sat, 5 Jan 2008 19:36:00 -0700
On Jan 5, 2008, at 6:54 PM, evansjm wrote:

> Hi,
> I would like to create a simple program and use FBtoC and xcode to  
> make a universal binary
> For example, After downloading FBtoC , I wrote a simple program in  
> FB as follows:
>
> window 1
>  print "Hello, world!"
> do
> handleevents
> until gFBQuit
>
> I saved the file (called "Hello") and used FBtoC to build the C file


You need to read the documentation for FBtoC.  You do NOT open Xcode  
or build projects in Xcode.

1) Start FBtoC
2) In FBtoC preferences, pick the target of your build (i.e.  
universal, PPC, etc) and optimization level --I use "smallest and  
fastest"
3) Choose "Open" from FBtoC's file menu
4) Pick the source file where you wrote your code
5) Wait for FBtoC to end

6) If you picked launch after build on the FBtoC preferences, you  
should be looking at your running built application. If not, there  
should be an executable with the same name as your source file in the  
same folder as your source file.

Brian S.