Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54265 invoked from network); 3 Apr 2014 10:47:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2014 10:47:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:46606] helo=klapt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/F6-15417-05C3D335 for ; Thu, 03 Apr 2014 05:47:45 -0500 Received: by klapt.com (Postfix, from userid 33) id 3A06D23D611B; Thu, 3 Apr 2014 12:47:42 +0200 (CEST) Received: from 178.2.25.10 (SquirrelMail authenticated user anatol@belski.net) by webmail.klapt.com with HTTP; Thu, 3 Apr 2014 12:47:42 +0200 Message-ID: In-Reply-To: <40B86AC1-3057-4016-95E2-EB8E754A70E1@saxonica.com> References: <42E6A56D-0FF1-4408-BCF5-DFBCEDA735EB@saxonica.com> <1396445137.2982.291.camel@guybrush> <2EF10AD3-FC2C-4F34-9639-8BC798DB0917@saxonica.com> <1396449767.2982.294.camel@guybrush> <40B86AC1-3057-4016-95E2-EB8E754A70E1@saxonica.com> Date: Thu, 3 Apr 2014 12:47:42 +0200 To: "O'Neil Delpratt" Cc: internals@lists.php.net User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PHP C++ extension on Windows: setting the working directory the same as PHP From: anatol.php@belski.net ("Anatol Belski") Hi O'Neil, On Thu, April 3, 2014 11:44, O'Neil Delpratt wrote: > Just to report to the list that the linkage error has not gone away, even > with the extern “C” wrapped around the include. It seems like I need to > add some library dependency? But my experience of Windows and c++ is > limited. > > > On 2 Apr 2014, at 15:42, Johannes Schlüter > wrote: > > >> 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 >> >> > > ------------------------------- > O'Neil Delpratt > Software Developer, Saxonica Limited Email: oneil@saxonica.com > Tel: +44 118 946 5894 > Web: http://www.saxonica.com > Saxonica Community site: http://dev.saxonica.com > Bug tracking site: https://saxonica.plan.io/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > do you have your code somewhere around, or at least could you share a problem snippet? Regards Anatol