News:

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

Use PCRE Library in MASM32!!!

Started by axus, September 15, 2007, 02:09:27 PM

Previous topic - Next topic

axus

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!

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

axus

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!

Vortex

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 )