mep2169
mep2169

Reputation: 13

Linking to Boost in DLL file

I've created a Win32 DLL application that links to the Boost Library. It compiles, and all is well and good, except that if I create another application that references the DLL, it requires that that application link to Boost as well. If I don't link to Boost, I get a "fatal error C1083: Cannot open include file: 'boost/utility.hpp': No such file or directory." Is there any way around this? I'm a noob, so I feel that I may be missing something essential, but I haven't found anything in searching yet. Thanks!

Upvotes: 1

Views: 810

Answers (1)

Tim
Tim

Reputation: 153

As Biffen said in the comments, that is a compilation error. You project needs to be able to read the Boost header file(s) that your other project used, so you'll have to edit your project settings "additional include directories" so that the location of the Boost header files is accessible.

Upvotes: 2

Related Questions