Joseph Wayne Norton wrote:
> 
> Has anyone tried or know how to build the Win32::API module using
> gcc-2.95.2-msvcrt and perl-5.6.0?  The compilation is failing at the _asm
> block in the xs module.

What is the error message(s) you are receiving?

If it's complaining about "reference to undefined symbol '_asm'", you
may want to check the documentation, to see what the GCC symbol for
inline assembly is.

Assuming the symbol is '_asm_', you can then do something like:

#ifdef _WIN32_
#ifdef MINGW32
#define ASM _asm_
#else
#define ASM _asm
#endif /* MINGW32 */
#endif /* WIN32 */
#ifndef ASM
#error: Module requires Win32
#endif /* ASM */


And then, in the xs source, replace '_asm' with ASM.


HTH,
Ian


-- 
99 little bugs in the code, 99 bugs in the code.
Fix one bug, compile again, 100 little bugs in the code.
100 little bugs in the code, 100 bugs in the code.
Fix one bug, compile again, 101 little bugs in the code...

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to