0

I am working on a project which uses PCL (boost is one of the programs used by PCL). the error I'm getting:

error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_50.lib'

What I am trying to do is to generate a .dll, this worked before. I checked the settings of the working and failing projects, and there is no difference in linking, C/C++ settings, yet somehow this one doesn't work.

I don't know if this matters, but it does work as a static library (.lib).

Zeta
  • 103,620
  • 13
  • 194
  • 236
Danahi
  • 98
  • 1
  • 11
  • have you checked the directory paths for .lib? – CharlesB Feb 25 '13 at 12:06
  • are you using libboost functions? why did you tag c#? is that c++/cli project? – VladL Feb 25 '13 at 12:06
  • you need to link with the boost library. in your case, the compiler doesn't see where it is. you should go in your project properties > linker > general > include additionnal directory, and add an entry for the boost libraries. if that's already done, then you have not compiled that boost library. – Stephane Rolland Feb 25 '13 at 12:07
  • @ CharlesB I tried to go to Configure->Linker->Input and add the library itself without result – Danahi Feb 25 '13 at 12:07
  • @Vlad L I tagged C# because this has to go to C#, I guess I shouldn't have done that, I will edit that. I am using libboost yes – Danahi Feb 25 '13 at 12:09
  • @ Stephane Rolland: This made it worse, I have 9 errors now :P – Danahi Feb 25 '13 at 12:11
  • @Danahi 9 errors like "unresolved tokens"? than put the dll in the same directory with lib – VladL Feb 25 '13 at 12:24
  • @ Vlad L, yes unresolved tokens, sorry I don't get what you mean about the dll in the same directory as the lib? – Danahi Feb 25 '13 at 12:33
  • @ Vlad L in case u mean that 'libboost_date_time-vc100-mt-gd-1_50.lib' and the .dll have to be in the same spot, they are. – Danahi Feb 25 '13 at 12:39

0 Answers0