Re: PHP C++ extension on Windows: setting the working directory the same as PHP
| From: | Johannes Schlüter | Date: | Wed, 02 Apr 2014 14:42:47 +0000 |
| Subject: | Re: PHP C++ extension on Windows: setting the working directory the same as PHP | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73520@lists.php.net to get a copy of this message | ||
On Wed, 2014-04-02 at 14:56 +0100, O'Neil Delpratt wrote:
> When I compile my code I am now getting the following error:
>
> Error 93 error LNK2001: unresolved external symbol
> "__declspec(dllimport) char * __cdecl virtual_getcwd(char *,unsigned
> int,void * * *)" (__imp_?virtual_getcwd@@YAPADPADIPAPAPAX@Z) C:\Users
> \ond1\Documents\Visual Studio 2012\Projects\saxon\saxon
> \SaxonProcessor.obj
>
> insertions in my C Code:
The subject talks about C++, now C. If you are using C++: Probably that
header is missing extern "C" declarations? Try
extern "C" {
#include "TSRM/tsrm_virtual_cwd.h"
}
johannes