By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,513 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,513 IT Pros & Developers. It's quick & easy.

Why do I get "unresolved external symbol" error only when I compile with "releas" mod

P: 8

I'm devloping MFC program and found something weird happening.

When I compile it with "debug mode", it compile fine, and runs fine.
however, when I compile with "release mode",
I get a bunch of "unresolved external symbol _imp_FtpFindFirstFileA@20.......blah blah." errors.

Can someone explain why this is happening and how to fix it?
Thank you.
May 25 '07 #1
Share this Question
Share on Google+
8 Replies

Expert 100+
P: 1,275
Have u used any #ifdef specific for DEBUG in your code...check that.
May 25 '07 #2

P: 110
Linker errors are hard to debug..
It may be because of these reasons..
for eg.. U have a prototype of a funtion in a header file and this function does not have a definition..
sometimes rebuilding the solution solves the problem..

May 25 '07 #3

P: 110
Also memory module used by VC++ compiler in debug and release mode are different my guess is.. even the linker module may be different.. maybe thats the reason u get errors only in Release mode..
check for definition prototype mismatch.. especially if u have functions which accepts objects as parameters.. sometimes VC++ compiler doesnt give any error..

May 25 '07 #4

Expert Mod 5K+
P: 9,197
Are you using the MFC release libraries when you release build?
May 25 '07 #5

P: 104
A simple doubt, have you included the required libraries for RELEASE mode also. It must have slipped your sight...
May 25 '07 #6

P: 8
thank you for the replies.

I think it is not definition prototype mismatch problem. double checked.

Can you use different libraries in the realse mode and debug mode?
I just pressed Ctrl+F5 when I build.

I'm using MS visualstudio .net 2003.

Jun 6 '07 #7

Expert Mod 5K+
P: 9,197
You do use different libraries in release mode than debuig mode. They ghave different names. Debug libraries have embedded code to operate the Visual Studio debugger. Release libraries do not have this code.

If you are using the wrong libraries, the effect you will see is that functions apopear to be missing.
Jun 6 '07 #8

P: 8
Thank you for your replies.

Can you tell me how I can find out which mode uses which library?

Thank you.
Jun 11 '07 #9

Post your reply

Sign in to post your reply or Sign up for a free account.