News:

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

Asm and Visual C++ 2008

Started by johnsa, May 19, 2008, 01:00:20 PM

Previous topic - Next topic

johnsa

Hey all,

Seem to be having issues with getting an asm built DLL to link with a Visual Studio 2008/C++ project. I'm sure this used to work fine last time I tried with VS6.0.

ASM DLL is standard with a DEF file as follows:

LIBRARY testdll

EXPORTS
TestFunc

Assembler options per normal /c /coff .. linked using v6.0 of link .. generates DLL and LIB files fine.

In VC++ 2008 added lib file to linker input options and added the following prototype:
extern "C" void TestFunc();

also tried adding in __stdcall .. both come up with linker errors of unresolved external.

Any ideas?
Thanks!

Adamanteus

Try in asm module : .model flat, c - that to add underscore  :clap: