[futurebasic] Re: [FB] Hello World

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

From: Robert Purves <listrp@...>
Date: Sun, 6 Jan 2008 18:34:15 +1300
evansjm wrote:

> 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:

> I saved the file (called "Hello") and used FBtoC to build the C file
> I then created a folder called "build temp" with 3 runtime files a 1  
> C file   hello.c .... no problem so far
>
> I then opened xcode, created a "carbon project" and used the ADD TO  
> PROJECT option to add the 4 files to the project
> that FBtoC created above
>
> When I compile with xcode I get lots of errors :
> Would anyone be willing to explain the procedure to get a universal  
> binary  program working. with xcode or am I going about this  
> entirely wrong?


Assuming that you are experienced with Xcode, this picture and the  
notes below should suffice.



 From build_temp (created by FBtoC on translating "Demo"):
_0_TranslatedRuntime.c
_0_TranslatedRuntime.h
Demo.c

 From build_goodies (in FBtoC folder):
AppThings.c
ArrayIndices.c
ConsoleApp.c
Containers.c
EditFields.c
FBtoC.h
FBtoC_Prefix.h
FileHandling.c
FilesDollarFunction.c
General.c
Index.c
Prefs.c
Runtime.h

To avoid a flood of warnings, it's a good idea to have this Xcode  
setting:
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO

Robert P.


Attachments: