|
-
Jan 26th, 2002, 02:52 PM
#1
Thread Starter
Addicted Member
Unresolved Externals
Hello
I'm having probs linking a dll with my app, it keep son giving me unresolved externals:
Compiling...
authenticate32.cpp
Linking...
authenticate32.obj : error LNK2001: unresolved external symbol __chkesp
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
Debug/authenticate32.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
authenticate32.exe - 3 error(s), 0 warning(s)
I don't know where to begin to solve them, I was hoping some one could give me guidance or advice on where to start.
Heres a link to the project files:
http://www.uea.ac.uk/~u9945296/authenticate32.zip
its a main project with the dll in the sub folder.
cheers for any advice
Andy
-
Jan 27th, 2002, 12:05 PM
#2
It doesn't include the CRT libraries. Unselect "Link -> Ignore all default libraries."
On your code: are you porting a 16-bit app?
FAR and PASCAL are only used for compatibility. You should either use STDCALL like with WinMain and WndProc or CALLBACK.
hPrevInstance is always NULL in Win32. No exception.
Although it's exactly the same, you usually use UINT as second parameter to wndprocs and dlgprocs.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|