Lib file creation

Moderator: Rathinagiri

Post Reply
DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

Lib file creation

Post by DenCo »

Hello All.. I've been gone for a good while, but it's all because of programming work for customers who change their business rules weekly ! I appreciate this group here, and will never be gone forever !

Here's my topic and question. I am trying to make a library or two. I have some old 16bit (clipper) libraries that I have the source code to.

I made a .hbp file and included the following at the start.

-hblib
-oDenCo
-w3 -es2

(here I added a list of the .prg files)

I used hbmk2 to invoke the compile on the .hbp file

After some minor prg changes,, it all ran ok ,,,

I was expecting a .lib file,, but instead I got an archive file ".a" file ..

So,, am I doing something wrong ? Am I ok? ...

Thanks in advance, and if nothing else this gave me a good reason to post !

Bill
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Lib file creation

Post by esgici »

Hi Bill

Welcome back :)
DenCo wrote:So,, am I doing something wrong ? Am I ok? ...
Don't afraid, noting is wrong, you are ok.

Only your expectation ;

Default ( and strongly recommended ) compiler for both Harbour and HMG is MinGW and standard file extension of library file of MinGW is ".a".

If you are successfully used (linked) lib (.a) files built by you in your project, this means everything is fine :arrow:

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

Re: Lib file creation

Post by DenCo »

Thank you for your kind reply and the information.

Yes, I'm using MinGW. This was my first time in HB to create a lib,,, so now I know what to expect for the future.

Thanks again,
Bill
Post Reply