Re: Compiling PHP extension on windows
| From: | Zhuguo Shi | Date: | Tue, 14 Apr 2009 03:38:20 +0000 |
| Subject: | Re: Compiling PHP extension on windows | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6314@lists.php.net to get a copy of this message | ||
Yes, it is my extension. The error I got is
fatal error LNK1169: one or more multiply defined symbols found
This extension works fine on Linux but I don't know why it can not be
compiled on Windows.
Perhaps wrong name space? (It uses C++)
When added '/force' option to linker, it can be compiled. But the generated
dll doesn't work in PHP.
Any help is appreciated.
On Tue, Apr 14, 2009 at 11:24 AM, Kalle Sommer Nielsen <kalle@php.net>wrote:
> Hi Zhuguo
>
> 2009/4/14 Zhuguo Shi <blueflycn@gmail.com>:
> > Hi there,
> >
> > I am building a extension on windows platform (vs 2005). I got some
> errors
> > when linking objects:
> > fatal error LNK1169: one or more multiply defined symbols found.So add
> > "/force" option in linker.
>
> when you're building, do you get any compilation warnings from your
> extension? or if its not your extension, which one are you trying to
> compile?
> >
> > Then it generated a dll but it doesn't work in PHP (seems can not be
> > loaded).
> >
> > How can I solve this or test a dll under PHP?
> >
> > Anyone can help me?
> >
>
>
>
> --
> Kalle Sommer Nielsen
> kalle@php.net
>