I am trying to compile my C++ programs in debug mode in Visual NET 2003 and keep getting the following message
fatal error LNK1104: cannot open file 'mfc70d.lib
I cannot find this program anywhere in my Windows 2003 Server operating system. Also, I cannot find MFC42D.DLL anywhere in the system. How can I test in debug mode without it? What is causing these errors and how do I get around it
Dave Uphof 5 9272
Dave wrote: I am trying to compile my C++ programs in debug mode in Visual NET 2003 and keep getting the following message: fatal error LNK1104: cannot open file 'mfc70d.lib' I cannot find this program anywhere in my Windows 2003 Server operating system. Also, I cannot find MFC42D.DLL anywhere in the system. How can I test in debug mode without it? What is causing these errors and how do I get around it? Dave Uphoff
Was this program initially compiled using VC++7.0? You say you're using
..NET 2003 so that means it should be linking with mfc71d.lib. If you
were using VC++7.0 then trying to link with mc70d.lib makes sense. If
you're using 7.1 then goto the project settings->linker->input and look
for the file mfc70.lib and change it to mfc71.lib.
--
sashan http://www.cs.auckland.ac.nz/~sgov008/
Sashan
Thanks for your reply. My program was originally compiled with Visual C++ 6.0, then 7.0 with NET 2002 and now 7.1 with NET 2003. I don't see any reference to mfc70.lib in the Input section for the linker properties. How do I change something I can't find? Can I just add mfc71.lib to my list of linker inputs? For some reason the compiler thinks I am compiling with 7.0 when I am actually using 7.1.
Dave
Dave wrote: Sashan; Thanks for your reply. My program was originally compiled with Visual C++ 6.0, then 7.0 with NET 2002 and now 7.1 with NET 2003. I don't see any reference to mfc70.lib in the Input section for the linker properties. How do I change something I can't find? Can I just add mfc71.lib to my list of linker inputs? For some reason the compiler thinks I am compiling with 7.0 when I am actually using 7.1. Dave
Well I'm confused as well. I don't think adding mfc71d.lib to the list
of inputs will help though, since the linker will still look for
mfc70d.lib. Check the command line passed to the linker (project
settings->linker->command line). Maybe mfc70d.lib is mentioned there.
--
sashan http://www.cs.auckland.ac.nz/~sgov008/
----- Jeff Partch [MVP] wrote: ----
[CUT I'm confused by the overall issue of mismatched versions as well, but Afx. uses #pragma comment(lib, "") to embed the appropriate library search recor in the *.obj
...And I think this will get you more confused:
I have the same problem and never installed .NET 2002 but only .NET 2003. I open afx.h and found this
#ifdef _DEBU
#pragma comment(lib, "mfc71d.lib "
#pragma comment(lib, "mfcs71d.li b"
#els
#pragma comment(lib, "mfc71.lib"
#pragma comment(lib, "mfcs71.lib "
#endi
Now I ask you: why does VC7 try to compile with mfc70.lib? I searched my disk for a file containing mfc70.lib and result in a "0 files found" message.
Regedit (just for a try) return no key/data/value on an mfc70 searc
Maybe something wrong in the .net 2003 italian version
My job is stopped for this reason and i've patched copying and renaming the mfc71.lib into mfc70.lib and things gone right but i don't like this
Thanks for attentio
ZaZy - D.P.E. Development Team
On Wed, 5 May 2004 03:26:06 -0700, "ZaZy"
<an*******@disc ussions.microso ft.com> wrote: I have the same problem and never installed .NET 2002 but only .NET 2003. I open afx.h and found this: #ifdef _DEBUG #pragma comment(lib, "mfc71d.lib ") #pragma comment(lib, "mfcs71d.li b") #else #pragma comment(lib, "mfc71.lib" ) #pragma comment(lib, "mfcs71.lib ") #endif
Now I ask you: why does VC7 try to compile with mfc70.lib? I searched my disk for a file containing mfc70.lib and result in a "0 files found" message. Regedit (just for a try) return no key/data/value on an mfc70 search Maybe something wrong in the .net 2003 italian version? My job is stopped for this reason and i've patched copying and renaming the mfc71.lib into mfc70.lib and things gone right but i don't like this!
You included in your project an obj file or a lib file which was
compiled with .NET 2002. Object files contain records that tell the
linker which files to look for.
Jeff Bean
CWC Software This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christian Graf |
last post by:
Hi,
(sorry if this post might occur two times, but I can't find my first
one from yesterday evening in this group)
I have a bigger VC++6.0 project which is successfully compiled into a
DLL. I had to combine this code with my one which worked fine for
itself. After integrating my code one into one of the classes the the
compiler threw errors. They disappeared after the compiler option
__STDC__ was removed. Apparently the larger project...
|
by: Christian Graf |
last post by:
Hi,
I have a bigger VC++6.0 project which is successfully compiled into a
DLL. It's compiled with full conformance with the ANSI C standard
(symbol __STDC__). I had to combine this code with my one (C++) which
worked fine for itself. After integrating my code one into one of the
classes the the compiler threw errors. They disappeared after the
compiler option __STDC__ was removed. My code is C++ code (and can't
be rewritten), thus the...
|
by: Techno Learner |
last post by:
Sorry for the lame question but, what's the difference between Debug
and Release versions?
|
by: emma middlebrook |
last post by:
I have a question regarding asserting ... here's some code:
string GetAssertMessage()
{
... prepare a message string and return it...
}
void SomeMethod()
{
...
|
by: songie D |
last post by:
I, like I'm sure a lot of people, make some modifications, then press F5 to do a build and run in one go, clicking 'yes' to Do you want to build first. Sometimes, there are warnings but not errors. Once the project has started, the 'output' refers to what libraries have been loaded and the program's debug output, the compiler output has gone at this point
Is there any way to show both output windows, i.e. view the compiler output while the...
| |
by: Jonathan Turkanis |
last post by:
Dear All,
My latest library leads to a lot of internal errors and compiler limit errors
(C1001, C1055, C1067) when compiled on VC7.1 with /Zi or /ZI. The library
compiles on GCC 3.4.1, Comeau 4.3.3 and Intel 8.0, and with fewer errors on
VC8.0 beta, so I don't think the errors reflect non-conformance with the C++
standard.
I've found I can eliminate most of the errors by surrounding the declarations
with
|
by: David++ |
last post by:
Hi there,
I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for
the debug version of the DLL (and this DLL works fine), however, I seem
unable to build a Release version of the DLL. If I do a 'Batch Build' and
select both Debug and Relase versions for building it will build the debug
version but throws up errors for the Release version. For example, the output
I get for a Batch Build is this -
...
|
by: adhingra |
last post by:
I stumbled upon something which does not make sense "Debug class methods are
not automatically suppressed by the managed c++ compiler when the project is
build in release mode"
Create a a Project (Windiows Forms or Console) in VS2005 using Managed C++
and put a Debug:;Assert(false) or Debug::Writeline("test") in there and then
compile in Debug and release Configurations. The result is the same in both.
Debug class calls are not...
|
by: tommaso.gastaldi |
last post by:
It would be useful, sometimes, when debugging, to disable
all the try /catch one has in the program (clearly not commenting them
out).
Any info or hint on that?
-tom
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |