[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: can't use apr_time_ansi_put

From: Andreas Richter <ar_at_oszine.de>
Date: 2006-10-29 10:16:33 CET

Am Freitag, 27. Oktober 2006 03:05 schrieb Malcolm Rowe:
> On Fri, Oct 20, 2006 at 10:24:26AM +0200, Andreas Richter wrote:
> > When i try to link (MSVC2005) against libapr.lib and try to use
> > apr_time_ansi_put then i become an linker error that it can't find the
> > symbol
> > __imp_apr_time_ansi_put@12
> >
> > I have searched for that symbol in the svn libraries and doesn't find
> > it. I can find only the symbol
> > __imp_apr_time_ansi_put@8
>
> It looks like there's a problem with the calling convention or prototype
> that your include file is bringing in, because your compiler has decided
> that it should pass a larger set of arguments to that function than the
> function in the library declares.

Hm. It looks like my calls are correct. In apr_time.h (from the
svn-win32-1.4.0_dev.zip) apr_time_ansi_put ist declared as:

APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result,
                                                    time_t input);

and my call (for example) is:

          apr_time_t *result;
          time_t input;

          apr_time_ansi_put( result, input );

MSVC++2005 compiles it correct but can't link it. I become the following
(german) error message:

error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol "__imp__apr_time_ansi_put@12" in Funktion ""public: __thiscall
svn::DateTime::DateTime(class QDateTime const &)"
(??0DateTime@svn@@QAE@ABVQDateTime@@@Z)"..

> Maybe someone with more win32 experience can confirm whether this is a
> general problem with the win32 development package.

Are there any known problems in the development packages svn-win32-1.4.0?

-- 
Andreas 'ar' Richter
http://www.oszine.de - http://ar.oszine.de
GPG-KeyID: 0x7BA12DD9
Fingerprint: D2E9 202B F4F0 EB16 25DE 5FF7 0CF2 3C57 7BA1 2DD9

  • application/pgp-signature attachment: stored
Received on Sun Oct 29 10:17:39 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.