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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now