Jump to content
Tuts 4 You

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


Recommended Posts

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:



.model flat, stdcall

option casemap:none

include static.inc






FxProc proc var:DWORD

mov eax, var

imul eax, 0123h


FxProc EndP

end start

the code of static.inc is as follows:


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??

Link to comment

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...