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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

806 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