Solved

Error tracking. (MSVC)

Posted on 1998-08-28
2
485 Views
Last Modified: 2006-11-17
I think i have found out a good way to track the cause of link errors like:
error LNK2001: unresolved external symbol _BigTroubleYouDork

Now listen carfully. I will take the solution in small steps.

1. Go to the drive:\MSDEV directory the where you have your compiler, *.h, *.lib and the MSVC editor.
2. Press F3 and the search engine will pop up with the drive:\msdev as default.
3. Go to the last tab where you have advanced search and write in the textsearch editbox:
    In this example that would be "BigTrobleYouDork".
4. Now you probebly got some headerfiles and lib files.
5. Insert the .lib and/or .h file in the project. And you're done.... It worked for me.

Now the question: I now this is not the right way to solve the problem. I would be happy if somebody teached me the right way.

Yours sincerely
Andla.
0
Comment
Question by:andla
2 Comments
 
LVL 2

Accepted Solution

by:
milenvk earned 20 total points
ID: 1171504
Yes this is not the right way. The right way is to read the documentation carefully if you are using third party libraries. They usually document the names of the lib files that you have to link to and the headers that you have to include. If you are using Win32 services Microsoft's documentation usually mentions the lib or dll where the function that you are using is found and also lists the header files.
I would be comfortable with doing things your way too, but consider a situation where you have two or more libraries (for example release and debug versions) that define your unresolved symbol?
0
 
LVL 1

Author Comment

by:andla
ID: 1171505
Thanks!

Do you know any tools that can scan the program and list the right libs och header or dll that is needed in the project. I used the WNet.... functions for networks and could'nt find any- where that i should put the Mpr.lib in my project. I was hoping that i could find it in the .mak-file but not. The thing is that i cant read .mak-files in MSVC++ 4.1 it only uses .mdp    .
I think that the microsoft documentions are very poor telling the user what lib,dll,header that is used even if the Wnet... is in the doc's.

Your sincerely
Andla.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Which IDE to use to begin C++ training? 5 63
Find Visual Studio Tools 2 103
C++ question 3 65
Add values of each row in an array 3 57
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question