Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73520 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53118 invoked from network); 2 Apr 2014 14:43:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2014 14:43:24 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:34618] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/00-52525-8022C335 for ; Wed, 02 Apr 2014 09:43:21 -0500 Received: from [192.168.2.31] (ppp-188-174-32-124.dynamic.mnet-online.de [188.174.32.124]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 8984A46424; Wed, 2 Apr 2014 16:44:06 +0200 (CEST) To: O'Neil Delpratt Cc: internals@lists.php.net In-Reply-To: <2EF10AD3-FC2C-4F34-9639-8BC798DB0917@saxonica.com> References: <42E6A56D-0FF1-4408-BCF5-DFBCEDA735EB@saxonica.com> <1396445137.2982.291.camel@guybrush> <2EF10AD3-FC2C-4F34-9639-8BC798DB0917@saxonica.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 02 Apr 2014 16:42:47 +0200 Message-ID: <1396449767.2982.294.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP C++ extension on Windows: setting the working directory the same as PHP From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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