_sb_ Posted November 14, 2012 Share Posted November 14, 2012 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:DWORDmov eax, varimul eax, 0123hRetFxProc EndPend startthe code of static.inc is as follows:.constFxProc proto :DWORDthen 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
atom0s Posted November 14, 2012 Share Posted November 14, 2012 Link the .lib file to your project too. Link to comment
_sb_ Posted November 14, 2012 Author Share Posted November 14, 2012 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! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now