|
From: Michael G. <mg...@te...> - 2006-03-07 05:28:42
|
> That is not the cause of the problem. The exports are stdcall Modify > include/apr/aph.h like so, at > about line 105 >=20 > #ifndef __GNUC__ > /* __attribute__ is a keyword, not a macro, on __GNUC__. Don't disable= it. > */ > #ifndef __attribute__ > #define __attribute__(__x) > #endif > #endif Good point! > Then rebuild your implib to add an underscored-prefix alias > dlltool --output-lib libapr.a -U --input-def libapr.def >=20 > Ooops, That is really not quite right, because that will add underscores = to data > symbols and __cdecl functions as well. It would be nice if dlltool had > an --add-stdcall-underscore-prefix > option for MSVC compat. sigh. After applying the above fix to apr.h I've tried with libapr.a created with both dlltool --output-lib libapr.a -U --input-def libapr.def dlltool --output-lib libapr.a --input-def libapr.def and it successfully links with both versions. Checking the created assembly of main.o reveals that after the above fix the code references e.g. '__imp__apr_initialize@0' and those names are completely unaffected by -U. Best, Michael =2D-=20 Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |