MingW is a port of the infamous GCC from linux to windows.
1. These are some of the commands that I noted to manipulate library in the course of my studying it:
1. These are some of the commands that I noted to manipulate library in the course of my studying it:
- list object file names: ar -t <lib>[/*:m]
- list public symbols within object files: nm -A <lib>[/*:m]
- insert object file:ar r <lib> <obj>[/*:m]
- delete obj from lib: ar d <lib> <obj>[/*:m]
- extract obj without deleting: ar x <lib> <obj>[/*:m]
- add obj and create lib: ar rcs <lib> <obj>[/*:m][/list:u]
2. Compilation of the source to generate obj file (in MingW obj file would have .o extension)hbmk2 -w -n -m -clipper %1.prg c:\fwh\fwh.hbc xhb.hbc
I had to include xhb.hbc in my case because I #include "xhb.ch" in fivewin.ch
3. It should be noted that MingW doesn't behave like BCC when it determine which function to link-in. In BCC it's more like a case of first come first serve whereas MingW behaves like MSVC where it check a function's interface and then decide which function to actually link in. This will definitely cause headache and confusion for those who have only ever work with Clipper or BCC before.
This is just a note from a beginner in using Harbour+MingW. Any feedback is welcome.
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour