0

Im trying to use Haru libraries in VS 2010 Ultimate C++, but even if I run their sample code I get errors that look like this:

error LNK2019: unresolved external symbol _HPDF_Page_TextOut referenced in function _main   

and many more similar errors, for every _HPDF* function that I use. I followed instructions for installation(used Visual studio command prompt and nmake commands to generate needed files). I put all *.h files C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include, all *.lib files in lib folder and *.dll in lib_dll folder. I also tried putting all those files in project folder. I included all needed files in header, and VS finds it without problems, nothing is marked as error. But when i try to build it i get this kind of errors. I tried changing runtime library in project properties but that didnt help.

What could be the problem?

speedyTeh
  • 247
  • 1
  • 8
  • 22
  • How did you inform VS to include .lib files in your project? Did you do any setting in project configuration yet? – Aditya Kumar Pandey Jun 19 '12 at 11:16
  • How to do that? :) I only tried changing Runtime libraries – speedyTeh Jun 19 '12 at 11:20
  • 1
    right click on your project->click on properties->click on configuration properties->click on linker->click on input->add additional depedencies (names of all .lib files you need). – Aditya Kumar Pandey Jun 19 '12 at 11:23
  • Thanks a lot! That solved my problem! I want there and added : libhpdf.lib libpng.lib zlib.lib – speedyTeh Jun 19 '12 at 11:27
  • Im a newbie, and I really appreciate answers from people that know lot more than me. Im not posting questions if I hadnt tried at least few hours to solve it myself. With time I will know more and than have better rate, and also be able to help others. Im really grateful for your help but I think your other post is unnecessary... – speedyTeh Jun 19 '12 at 11:34
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/12738/discussion-between-user1151026-and-aditya-kumar-pandey) – speedyTeh Jun 19 '12 at 11:34

0 Answers0