Page 1 of 1

Lib file creation

Posted: Thu Feb 21, 2013 2:17 pm
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

Re: Lib file creation

Posted: Thu Feb 21, 2013 5:02 pm
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

Re: Lib file creation

Posted: Fri Feb 22, 2013 12:12 am
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