OS/2, eCS & ArcaOS - Technical > Programming

Compiling PM Samples with OpenWatcom

<< < (2/2)

Andi B.:

--- Quote from: Martin Iturbide on June 10, 2024, 11:12:54 pm ---Just one question, any idea how do you add the "bldlevel information" that is on "SCALE.DEF" to be included on the .exe ?

--- End quote ---
IMO the usual way is to add the description (bldlevel string) in the .def file and link this with the linker call. Or define in directly with the linker call (option description).

F.i. a line in .def looks like 'option    description @buildlevel.txt' where buildlevel.txt holds the current information (usually updated with a script to add current build date/time). One watcom project come to my mind - 4os2. I would compile it and look at the output to see how it exactly works. (quick copy paste from master.mif there wlink $(lflags) @xxxx.def file { $(4os2objs) }. Unfortunately 4os2 build files are a bit strange and hard to read.

wlink ... option description @..\buildlevel.txt file xx.obj or
wlink ... option description 'My buildlevel in proper format' ...  should work

Navigation

[0] Message Index

[*] Previous page

Go to full version