Jump to content
Tuts 4 You

Making a new lib file with winasm and exporting it to MSVC2005...


_sb_

Recommended Posts

Posted

I have already tried to study this problem and gather the most information I could but there still seems to be a problem. I have created a new winasm lib project and I did something like this:

.586

.mmx

.model flat, stdcall

option casemap:none

include static.inc

.data

.data?

.const

.code

start:

FxProc proc var:DWORD

mov eax, var

imul eax, 0123h

Ret

FxProc EndP

end start

the code of static.inc is as follows:

.const

FxProc proto :DWORD

then I finally created a static.h wich I included in my main.c using #include "static.h" it is written as follows:

__stdcall FxProc(unsigned int Var);

after invoking : FxProc(123); my code will not even compile: 1>test1.obj : error LNK2019: unresolved external symbol _FxProc@4 referenced in function _main any clues??

Posted

Link the .lib file to your project too.

Posted

LOL: it worled you guys here at tuts4you are awsome. Def. a great sitte and from now on I'll be stalking it daily. Muchas gracias!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...