The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: axus on September 15, 2007, 02:09:27 PM

Title: Use PCRE Library in MASM32!!!
Post by: axus on September 15, 2007, 02:09:27 PM
Might be linking PCRE Library(http://www.pcre.org/) to my MASM32 project as static library?
If yes then how? (example please)

p.s. Thanks!
Title: Re: Use PCRE Library in MASM32!!!
Post by: hutch-- on September 15, 2007, 10:12:59 PM
I just had a look at the link and there is no way of determining from that page what the library format is, what compiler it uses or what OS it supports. I would be inclined to download it and find out what it is about and perhaps if you can build the code using a C compiler in Windows that produces either COFF or OMF format object modules.
Title: Re: Use PCRE Library in MASM32!!!
Post by: axus on September 16, 2007, 11:52:24 AM
I build static library in Visual C++, but how I can linking to my MASM32 project:
1. How make a pcre.inc for MASM32 (if _cdell function calling)?
2. Where I can take msvcrt.inc & msvcrt.lib?
p.s. Thanks!
Title: Re: Use PCRE Library in MASM32!!!
Post by: Vortex on September 16, 2007, 01:12:54 PM
msvcrt.lib and msvcrt.inc are supplied with the Masm32 package.

Creating function prototypes is easy :

myfunc PROTO C :DWORD,:DWORD,:DWORD
anotherfunc PROTO C :DWORD,:VARARG


- The number of DWORDs depends on the number of parameters passed to stack.
- VARARG means that the number of parameters is variable.
- C refers to the C calling convention. ( == __cdecl )