473,406 Members | 2,894 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,406 software developers and data experts.

Linking errror

Hi all!

I have a problem with a project under VS 2005.
I downloaded 2 projects, one is a MFC .lib project and another one is
an .exe that uses this lib file. I need to edit those projects, but
first of all i tried to compile them.
Here comes the problem:
The lib proect compiles fine, but the other one says while linking:
unresolved externals! And I can't get it to work:
I tried to copy the .h and .lib files, add the paths to the project,
averything I could think of, but nothing!

Anyone can help me please? I'm going mad!

Thank you

Paolo

Jan 16 '06 #1
3 960
those unresolved externals, should they be imported from the lib file, or
are they different symbols?

if the symbols are from the lib file, then you need to add the library name
as a dependency in your project properties
Config properties -> linker -> input -> additional dependencies.

the library path should be added to
Config properties -> linker -> general -> additional library directories

that is the standard way of adding libraries to your project.
if those symbols are not in that library, what is the linker error message?
which externals could not be found?

kind regards,
Bruno.
"Paolo" <pa****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi all!

I have a problem with a project under VS 2005.
I downloaded 2 projects, one is a MFC .lib project and another one is
an .exe that uses this lib file. I need to edit those projects, but
first of all i tried to compile them.
Here comes the problem:
The lib proect compiles fine, but the other one says while linking:
unresolved externals! And I can't get it to work:
I tried to copy the .h and .lib files, add the paths to the project,
averything I could think of, but nothing!

Anyone can help me please? I'm going mad!

Thank you

Paolo

Jan 16 '06 #2
The external symbols are needed by the lib file, which links another
lib file. I have this lib file too, and i added it to the project as
you said before, but it didn't work...

Jan 16 '06 #3
I'm sorry, but I made a big mistake!Now it works fine! Thank you Bruno!

Jan 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
6
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
0
by: Rudy Ray Moore | last post by:
I've been having trouble getting incremental linking to work under Visual C++ .net 2003 7.1 for my multi-project workspace. Ronald Laeremans and Carl Daniel (and a few others) helped me figure it...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
1
by: srikar | last post by:
what is the difference between static linking & dynamic linking, what are the advantages of each? How to perform static linking & Dynamic linking by using gcc -o liniking will be done , but...
6
by: ImageAnalyst | last post by:
Try this: 1) In the code editor, double click some word. 2) Type control-F to bring up the search window. 3) Set the "Look in" drop down box to be "Entire Solution" 4) Click the "Bookmark All"...
4
by: mickey22 | last post by:
Hi all, I am getting the error LNK:c1010...It says that stdafx.h is not in the source file...Actually I have added a new .cpp file to my project which cannot be changed at all as it is defined by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
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...

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.