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>
- list public symbols within object files: nm -A <lib>
- insert object file:ar r <lib> <obj>
- delete obj from lib: ar d <lib> <obj>
- extract obj without deleting: ar x <lib> <obj>
- add obj and create lib: ar rcs <lib> <obj>
2. Compilation of the source to generate obj file (in MingW obj file would have .o extension)
- Code: Select all Expand view
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