Re: pdf_to_png()

"Adam R. Maxwell" <[email protected]> Fri, 28 Sep 2007 08:24:30 -0700
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
Hi Wilfried,

On Sep 28, 2007, at 01:30, Wilfried Hennings wrote:

> Hello Scott and Adam,
> I downloaded subversion 706, changed the call to gs into call of
> pdf2pnga, system independent, and added two scripts, for DOS/Win and  
> Unix.
> This results in subversion 707.
> So anyone can modify the script to specify the processor he likes  
> best.

Sounds reasonable to me...

> But in graphics.c the function "round" is called which is undefined -
> compiler messages:
> graphics.c: In function `AdjustScaling':
> graphics.c:549: warning: implicit declaration of function `round'

I noticed that warning on RedHat as well.  I didn't check math.h  
there, since it linked successfully.

> ...
> graphics.o(.text+0x1154): In function `AdjustScaling':
> graphics.c:549: undefined reference to `_round'
> graphics.o(.text+0x117a):graphics.c:551: undefined reference to  
> `_round'
> graphics.o(.text+0x11d5):graphics.c:556: undefined reference to  
> `_round'

Is there a Windows equivalent of -lm missing?  I thought round () was  
part of POSIX.

-- 
adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/