News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

inc2lib updated

Started by Vortex, March 02, 2005, 01:44:34 PM

Previous topic - Next topic

Vortex

MASM Include file to import library converter - inc2lib V1.1

Quote
Inc2lib converts a MASM include file to the associated import library. To create the libraries, the tool launches Pelle's linker Polib. The location of Polib should be defined via the environment variable PATH inc2lib accepts wildcards such *.inc The libraries can be used with COFF linkers MS link and Pelle's Polink

http://vortex.masmcode.com/files/i2l11.zip



Mark Jones

Hi Vortex, thanks for updating inc2lib. :)

I'm trying to build this project but it is missing a library called aplib.lib. When I try to create it using "INC2LIB aplib.inc", I get:

Quote
C:\MASM32\WinASM\Sample Programs\aPLib v0.42\masm32>inc2lib aplib.inc
Creating aplib.lib
POLIB: warning: Unrecognized option 'machine:IX86'; ignored.
POLIB: warning: Unrecognized option 'def:aplib.def'; ignored.

And it does not produce an output file. I'm probably doing something wrong... Any ideas?

ML.EXE v7.00.9210
POLIB v2.72.0
POLIB is in /MASM32/BIN, which is in the path.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Vortex

Hi Mark,

Thanks for the notification, my tool is case-sensitive that's why it doesn't recognize the statement proto c
All of these protos should be changed to uppercase PROTO C , I will  fixthis bug later when I will have time.

Mark, an important question, are you going to use aplib.inc and aplib.lib with the compression engine aplib.dll? As I know, aplib is also available as a static library. Sorry me, if I am mistaken.

The attachment contains the import library created from aplib.inc - What I modified in the include file is that all lowercase proto c are converted to uppercase PROTO C

[attachment deleted by admin]

Vortex

Version 1.2

Version 1.2 offers an optional switch to emit module definition files with decorated names.

inc2lib incfile.inc -d


With this -d option, you get only a module definition file, not the library.

http://www.vortex.masmcode.com/files/inc2lib12.zip

hutch--

Compliments Erol,

You are doing some good work here.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi Hutch,

Many thanks for your kind words.

Here is a demo with the -d switch : a batch file similar to BLDLIBS.BAT coming with the masm32 package creates module definition files from include files and polib creates the import libraries. Put inc2lib.exe and Buildlib.bat to the c:\masm32\include folder.

inc2lib aclui.inc -d
inc2lib activeds.inc -d
.
..
\masm32\bin\polib /machine:ix86 /def:aclui.def /out:aclui.lib
\masm32\bin\polib /machine:ix86 /def:activeds.def /out:activeds.lib
.
.
etc...


This methode is faster than processing all the include files with inc2lib *.inc

DEF files, import libraries and the batch file can be found in this zip file :

http://vortex.masmcode.com/files/MSCOFFlibs1.zip

Vortex

Version 1.21
- Fixed bug with include files not terminating with CR+LF

http://vortex.masmcode.com/files/inc2lib121.zip

Vortex

Version 1.3
- Fixed bug with function prototype parameters other than DWORD which was not recognized by the previous versions.

Notice that the tool is still case-sensitive, all the PROTO statements should be uppercase.

http://vortex.masmcode.com/files/inc2lib13.zip

Vortex