Grumpfish Compile

530 views
Skip to first unread message

Mark Wisniewski

unread,
Jan 21, 2016, 4:19:38 AM1/21/16
to multisoft FlagShip
Has anyone had success compiling Grumpfish from its .prg in Flagship. Every time that I try I get unresolved external references to other Grumpfish functions.

This is what Grumpshis says to use to compile in Clipper

clipper .prg /n /w

This is the closest I can come up with in Flagship

flagship *.prg -w0

Thanks for any support that you could offer,

Mark

alex

unread,
Jan 22, 2016, 1:36:44 PM1/22/16
to multisoft...@googlegroups.com
Hi Mark,

hard to help you without additional details.

The latest Grumpfish library is 4.06 (from 1995). To recompile it from scratch, you need to compile 10 Assembler  files (where heavy reworking would be required for Windows 32/64), 4 C sources (all requires reworking), and more than 100 PRG sources. Most of these .prg sources are compilable by FlagShip w/o problems, you however need to use "FlagShip -na -c *.prg" switches to get .OBJ for 32/64bit.

I have used many of
Grumpfish functions (those which do nor require ASM or C files), by simply adding the correponding (recompiled) .OBJ to the FS compile/link list. I would suggest not to replace FlagShip getsys.prg (containing readmodal() etc.) by Grumpfish's, since FS fully supports all the GUI FS extensions. Also mouse functions are standard in FS.Several Grumfish UDFs are replaceable by FS2 add-on functions or by the Nanfor library. To create .LIB for 32/64bit OS, you may use the fsmake tool.

Hope this helps,
Alex

Mark Wisniewski

unread,
Feb 3, 2016, 3:10:21 AM2/3/16
to multisoft FlagShip
Alex,

Thanks for your help.

I was able to compile most of the Grumpfish 4.06 .PRG files. I am a little fuzzy on the "FS compile/link list" you refer to. Can you point me to the documentation that discribes this.

I am sorry if this seams very basic to you, but it has been 20 years sense we setup our last Clipper system.

Mark

alex

unread,
Feb 3, 2016, 9:29:42 AM2/3/16
to multisoft...@googlegroups.com
Mark,

the general syntax for compiling by FlagShip is

   FlagShip *.prg [*.obj] [-I path_for_ch_files] [-M mainproc] [-o exename] [-v] [-na] [-m] [-d] [etc...]

so if your application uses e.g. Dateword() and Firstcap() from Grumpfish, and your sources are abc*.prg and xyz.prg with a start procedure named "mystart", the full compile/link command will read

   FlagShip abc*.prg xyz.prg C:\Grump\clip5\source5\dateword.obj C:\Grump\clip5\source5\firstcal.obj
       C:\Grump\clip5\source5\gfmonths.obj -M mystart -o myapplic.exe


Refer to the FlagShip manual for full details in section FSC, a short help is displayed by FlagShip /? or FlagShip -h

Hint: if you don't know the
Grumpfish source/object with corresponding function, you may use e.g. "grep -ino Dateword C:\Grump\clip5\source5\*.prg" and watch for corresponding "function ..." statement.

Alex
Reply all
Reply to author
Forward
0 new messages