Re: Assistance Needed with config.w32 and .dsp scripts

From: Date: Wed, 18 Nov 2009 00:47:05 +0000
Subject: Re: Assistance Needed with config.w32 and .dsp scripts
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6793@lists.php.net to get a copy of this message
On Tue, 17 Nov 2009 21:26:48 -0000, Israel Ekpo <israelekpo@gmail.com> wrote:
http://svn.php.net/repository/pecl/solr/trunk
solr_functions_client.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _solr_init_handle Release_TS\php_solr.dll : fatal error LNK1120: 8 unresolved externals
I did not even get this far when I tried.
So any help in the form of changes/recommendations to the config.w32 and solr.dsp scripts would be highly appreciated.
First, it was getting unresolved externals for libxml and libcurl. nmake /N told me those libraries weren't being included in the command line. So I manually added them and re-run the command. Then I got the same linking errors errors when using the static libcurl library, but when I used the dll import library the linking errors were gone. I don't know how to fix config.w32 so that those libraries are included in the linking step. The linking problem with curl is easy: don't use __declspec(dllimport) when using the static lib. Those __imp_* symbols are an optimization the compiler uses when importing *DLL* functions. You could still drop __declspec(dllimport) when using the DLL, but you would have a small performance hit. Checking the header curl.h, __declspec(dllimport) can be dropped from the declarations by defining CURL_STATICLIB. -- Gustavo Lopes

« previous php.pecl.dev (#6793) next »