Re: Working with PDFlib; and slamming the wall
Re: Working with PDFlib; and slamming the wall
- Subject: Re: Working with PDFlib; and slamming the wall
- From: Damien Bobillot <email@hidden>
- Date: Fri, 22 Jul 2005 13:17:20 +0200
Le 22 juil. 05 à 01:31, Frederick C. Lee a écrit :
Greetings:
I've downloaded pdflib verson 6.0.1 from pdflib.com. What I
got was some demo and doc files. I'm assuming the libpdf.a
library is installed somewhere globally.
Nevertheless, I've created a test (testC++) routine via XCode 2.1
containing the 'hello.cpp' and 'hello.hpp' source with links to the
pdflib.cpp, pdflib.hpp and pdflib.h
The following error was encountered during the link part of the build:
[Session started at 2005-07-21 16:20:43 -0700.]
ZeroLink: unknown symbol '_PDF_get_api'
testC++ has exited due to signal 6 (SIGABRT).
1) How do I solve this? and
Did you add the static library libpdf.a to your projet ? It should
appear in the "Link Binary With Library" build phase of your target.
You may run "otool -L <exec>" on the executable created by Xcode in
order to know where the dynamic linker will search the libraries to
load. Then, check if the libraries are in the good places.
You may also run "nm <lib>" on the libpdf.a file to check if it
really export a _PDF_get_api symbol.
2) I notice that I have the libpdf.a file on disk (via
spotlight). Does the suffix '.a' mean a static library?
Yes.
3) Where would be a good place to place 3rd-party static libraries
and their associated header files?
Wherever you want, you just have to set-up the corresponding include
and library paths.
Unix men would tell you to add the library in /usr/local/lib/ and the
headers in /usr/local/include. Imho, putting them in the same folder
as the projet files is from far sufficient, and avoid to pollute
system wide folders. In both case, you have no path list to modify.
--
Damien Bobillot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden