?
Solved

Error tracking. (MSVC)

Posted on 1998-08-28
2
Medium Priority
?
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
milenvk earned 60 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

800 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