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
243 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Header Errors LNK2019, LNK1120 - Unresolved Externals 4 311
Autosar OS Multicore Share Resources confusion ? 2 196
C# LINQ ForEach() question 6 114
Need some help with design 17 46
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 …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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