473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Hello.

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
8 4859
gpraghuram
1,275 Expert 1GB
HI,
Have u used any #ifdef specific for DEBUG in your code...check that.
Thanks
Raghuram
May 25 '07 #2
xoinki
110 100+
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..

Xoinki
May 25 '07 #3
xoinki
110 100+
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..

Xoinki
May 25 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
Are you using the MFC release libraries when you release build?
May 25 '07 #5
arunmib
104 100+
A simple doubt, have you included the required libraries for RELEASE mode also. It must have slipped your sight...
May 25 '07 #6
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.

Thanx
Jun 6 '07 #7
weaknessforcats
9,208 Expert Mod 8TB
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
Thank you for your replies.

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


Thank you.
Jun 11 '07 #9

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

Similar topics

8
by: Mylinux | last post by:
program was taken from http://www.beyondlogic.org/parlcd/parlcd.htm when compile under rh 9.0 I do not know how to correct this error. can u help? there is dos.h in my linux box.
1
by: Jeff Thur | last post by:
I am getting this error when trying to run a stored procedure: Microsoft.VisualBasic.CompilerServices.LateBinding.LateInd exGet(Object o, Object args, String paramnames) +1361...
1
by: Greg | last post by:
System.Management.ManagementException: Provider failure I am getting this error when trying to get information on an external CD Rom Drive using WMI class Win32_CDROMDrive. Any ideas? The...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
9
by: Ron | last post by:
my application is throwing an exception error when closing if I run a procedure in the app. I can't even trap the error with try/catch ex As Exception. Is there a way to completely shut down the...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
6
by: guxu | last post by:
I have a managed C++ code which calls some methods in unmanaged C++ DLL. In my unmanaged DLL, I have a PROTECTED virutal function in a base class and derived class has a PRIVATE function which...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
by: =?Utf-8?B?VWxmIFRob3JzZW4=?= | last post by:
I use Visual Studio 2005 for a C-project using an external compiler, and came up with the idea that error parsing would be neat, i.e. enabling the functionality available for a "normal" build...
1
by: cmbirk | last post by:
I have an external hard drive that I use to store my media for my macbook. I was wondering if there was some way to set up a folder on my macbook that I could add files to when my external was not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.