[futurebasic] Re: [FB] Re: FBtoC Questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2007 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 29 Oct 2007 17:52:05 +1300
maxclass@... wrote:

> Is it possible to add an addition into FBtoC to allow us to make  
> minor changes to the C code in the "build_temp" folder using XCode  
> and then have FBtoC  run directly from the modified "build_temp"  
> folder without going through the original FB code which will only re- 
> generate the same errors.


There's no official way, but this workaround isn't especially  
challenging.

[1] Turn on the 'Log UNIX commands' checkbox in FBtoC preferences  
settings.

[2] In FBtoC, open your project and wait until compilation finishes.

[3] Optionally edit the *.c files in the relevant build_temp folder.

[4] From your FBtoC Log window, copy the 3 consecutive blue lines  
beginning with cd, gcc, and touch. For example:

cd /Users/rp/Desktop/build_temp;
gcc -I/FutureBasic/FBtoC/FBtoC_Preview1a117/build_goodies /Users/rp/ 
Desktop/build_temp/untitled_1.c -fpascal-strings -framework Carbon - 
framework QuickTime -framework IOKit -o /Users/rp/Desktop/untitled\  
1.app/Contents/MacOS/untitled\ 1 -mdynamic-no-pic -trigraphs -Wall - 
Wno-trigraphs -Wno-sequence-point -Wno-multichar -Wno-deprecated- 
declarations -Wno-unused-label -Werror-implicit-function-declaration  - 
O0 -pipe -gused -Wl,-dead_strip 2>&1
touch /Users/rp/Desktop/untitled\ 1.app

[5] Paste these lines into Terminal.app to replicate the compilation  
step of the FBtoC build.

Robert P.