Solved

How do I correct unresolved externals errors when link Boost libraries into an Visual Studio unmanaged C++ DLL?

Posted on 2014-12-10
1
245 Views
Last Modified: 2014-12-10
Hi:

I've got a Microsoft unmanaged 32 bit C++ DLL that I'm trying to build with the Boost libraries.
I'm using Boost 1.55 and verified that I've got the 32 bit version of the libraries.
All the projects modules (along with their references to the Boost entry points) compile successfully.

I'm running into issues with linking.
It seems that all my boost entry points  are showing up as unresolved during the linking process.

For example:
Error	252	error LNK2001: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPAX@Z)	C:\zzz\fooa.lib(Module1.obj)	SampleDLL
Error	256	error LNK2001: unresolved external symbol "public: __thiscall cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray@cv@@QAE@ABVMat@1@@Z)	C:\zzzzz\fooa.lib(module2.obj)	SampleDLL

Open in new window


I'm sure that I'm missing either a compiler setting (name wrangling?) or linker switch somewhere.

Can someone help get me pointed in the right direction?

Thanks,
JohnB
0
Comment
Question by:jxbma
[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
1 Comment
 
LVL 16

Accepted Solution

by:
HooKooDooKu earned 500 total points
ID: 40492562
Well, starting with the basics...

1. You need to specify the Boost library file to link with:
Linker/Input/Additional Dependencies - Specify the file name of the Boost library

2. You need to specify the Path of library files:
Linker/General/Additional Library Directories
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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 …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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.

691 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