On Sun, 2017-04-16 at 01:43 +0000, Manrique, Beatriz wrote: > Awesome! I finally got it to compile but I cannot seem to be able to use the > library in my program. > From examples online, if I #include<podofo.podofo.h> I should be given access > to using all the other classes within the PoDoFo library and their respective > public functions. > > I have tried using > #include<podofo.h> or #include<podofo-base.h> but I still received the > ‘undefined reference to…’ error > Any tips? Or reasons why this might be happening?
Hi, first of all, it's not dot, neither dash, in the #include directive, but forward slash to be used, thus: #include <podofo/podofo.h> If you receive errors on missing symbols, but not on missing include file, then the file can be found, which is good. You didn't give the code you try to compile, thus it's very hard to guess what you made wrong, but out of blue, did you classify the PoDoFo symbols with proper namespace, or you declared appropriate "using namespace ...;"? Have a look into the hellowowrld example provided with PoDofo: https://sourceforge.net/p/podofo/code/HEAD/tree/podofo/trunk/examples/helloworld/helloworld.cpp It shows all the basics. Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users