On Mon, 7 Sep 2009, Jozef Misutka wrote:

>
> done,
>
> check pdf_to_text.cpp in newest tools package in sourceforge downloads.
> (tools-Win32-20090907_1746.zip) or
> http://pdfedit.cvs.sourceforge.net/viewvc/pdfedit/pdfedit/src/tests/tools/pdf_to_text.cc?revision=1.1&view=markup
>
> /jozo

Hi Jozef

Thanks a lot!!! My progress is as follows:

- checked out the cvs repository

- did autoconf and compiled it (success)

- went to the directory src/tests/tools/

- noticed that your pdf_to_text.cc is not (yet) in the Makefile

- added pdf_to_text.cc to TARGET_SRCS and pdf_to_text to TARGET and
   inserted a rule like this:

pdf_to_text: pdf_to_text.o
         $(LINK) $(LDFLAGS) -o pdf_to_text pdf_to_text.o $(UTILS_OBJS) \
         $(MANDATORY_LIBS)

- tried: make  --> error regarding missing common.o which was not
   compiled automatically.

- compiled common.o manually (success)

- again: make -->

g++ -c -O2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing 
-fexceptions -pipe -posix -I. -I/home/tsp/programs/pdfedit/CVS/pdfedit/src 
-I/home/tsp/programs/pdfedit/CVS/pdfedit/src/xpdf/ -I/usr/include 
-I/usr/include/freetype2 -o pdf_to_text.o pdf_to_text.cc
g++  -o pdf_to_text pdf_to_text.o common.o -L/usr/lib -lkernel 
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/kernel -lutils 
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/utils -lxpdf 
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/xpdf/xpdf -lfofi
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/xpdf/fofi -lGoo 
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/xpdf/goo -lsplash 
-L/home/tsp/programs/pdfedit/CVS/pdfedit/src/xpdf/splash -lfreetype -lz
pdf_to_text.o: In function `main':
pdf_to_text.cc:(.text+0x1a3): undefined reference to 
`boost::program_options::options_description::m_default_line_length'
pdf_to_text.cc:(.text+0x1b9): undefined reference to 
`boost::program_options::options_description::options_description(std::basic_string<char,
 
std::char_traits<char>, std::allocator<char> > const&, unsigned int)'

(many more of those, all about boost)

So the compile is fine but linking fails. What other directory must be 
included for linking to make this work?

Best regards
Thomas

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to