How do i translate rhe instuctions in SCOPTIONS file to gcc commandline?
PARAMETERS=REGISTERS
NOSTACKCHECK
STRINGMERGE
NOMULTIPLEINCLUDES
OPTIMIZE
LIBRARY=wbpath.o
LINK
SMALLCODE
SMALLDATA
STARTUP=cres
NOSTANDARDIO
The file to compile is
gui.c
which has an include for "wbpath.h"
wbpath.h & wbpath.o are both in the same drawer as gui.c
gui.c does use findpath.c function which i did find in a TEXLive AROS archive on Aminet.
wbpath is on Aminet and in developer CD V2.1
I managed to do this
3.Datas:Gui4Cli/Dev/Gui/GUI_SRC> gcc -c findpath.c
3.Datas:Gui4Cli/Dev/Gui/GUI_SRC> gcc -c gui.c
3.Datas:Gui4Cli/Dev/Gui/GUI_SRC> gcc gui.o findpath.o wbpath.o -o gui_OS4
wbpath.o: file not recognized: File format not recognized
I guess that's because wbpath.o was compiled for 68k
Dis somebody get hold of wbpath.c or does somebody know af a replacement for wbpatn ?
Yes the file format is different but more to do with GCC being ported from *n*x OS
There are some other options that change as well
Here is a C translation I once made from a disassembly of the wbpath.o module:
Don't know if it compiles with GCC, though. It does with Dice C and VBCC.
@Thomas
Many thanks
Only struct PathNode is redefined,
Compiles perfectly