httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Carleton" <scarle...@miltonstreet.com>
Subject Re: unresolved external ap_lookup_provider...
Date Sat, 22 Nov 2008 22:33:37 GMT
The problem was/is the lack of a extern "C" around the ap_provider.h
file.  I put one in my mod_auth_basic.cpp and all is well.  I am
wondering if it is possible to have it added to ap_provider.h itself.
Anyone know how I would go about getting that done?

Sam

On Sat, Nov 22, 2008 at 3:43 PM, Sam Carleton
<scarleton@miltonstreet.com> wrote:
> I am trying to consume mod_auth_basic.c in my own module.  Everything
> is fine except when linking I am getting the error:
>
> 1>mod_auth_basic.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) void * __stdcall ap_lookup_provider(char const
> *,char const *,char const *)"
> (__imp_?ap_lookup_provider@@YGPAXPBD00@Z) referenced in function
> _add_authn_provider
>
> My project is C++ so the mod_auth_basic.c is now mod_auth_basic.cpp.
> I am also doing all the module setup in a different cpp file, so
> add_authn_provider() is no longer static.  I am including
> libhttpd.lib, which appears to be where ap_lookup_provider is found,
> at least that is the only library with that string when I grep all the
> libraries.
>
> Does anyone have any suggestions on what I should try?
>
> Sam
>

Mime
View raw message