Re: Error Linking Win32 Extensions
| From: | brad lafountain | Date: | Wed, 24 Apr 2002 14:21:37 +0000 |
| Subject: | Re: Error Linking Win32 Extensions | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83261@lists.php.net to get a copy of this message | ||
you probally need to define
#define COMPILE_DL_(MODULENAME)
- brad
--- Igal Raizman <igal_r@hotmail.com> wrote:
> I switched back to PHP 4.1.2 to see if it works there and it still doesnt.
> I will try to recompile the lib file on my own, but I've come across another
> problem.
>
> If I only one function and all it does is use zend_printf(); to print
> "Hello World" my extension compiles and links without any problems.
> However, when I try to dl() my dll I get an error saying the dll
> is not a valid library:
> "Invalid library (maybe not a PHP library) 'Test.dll'"
> Any ideas ?
>
> "Markus Fischer" <mfischer@guru.josefine.at> wrote in message
> news:20020424054935.GB23226@guru.josefine.at...
> > It may certainly be the problem. Why don't you compile
> > php4ts.lib on your own too ?! First try this.
> >
> > On Tue, Apr 23, 2002 at 08:37:00PM -0400, Igal Raizman wrote :
> > > Hello,
> > >
> > > I've set my VC++ 6.0 as I've been told to do here, and my extensions
> compile
> > > without any problems, errors or warnings. However, when it comes to
> linking
> > > I get the following error:
> > >
> > > php_test.obj : error LNK2001: unresolved external symbol
> > > "__declspec(dllimport) int __cdecl zend_parse_parameters(int,void * *
> *,char
> > > *,...)" (__imp_?zend_parse_parameters@@YAHHPAPAPAXPADZZ)
> > > ..\..\Release_TS/php_Test.dll : fatal error LNK1120: 1 unresolved
> externals
> > >
> > > I've made sure to include php4ts.lib in the project, so I have no idea
> what
> > > the problem could be.
> > >
> > > Note: I'm using the php4ts.lib from PHP version 4.1.2, but actually
> using
> > > PHP version 4.2.0
> > > I'm not sure if this could be the problem, but I couldnt find php4ts.lib
> > > anywhere else but in the
> > > 4.1.2 dist.
> > >
> > >
> > > Thanks.
> > >
> > >
> > >
> > > --
> > > PHP Development Mailing List
> > > <http://www.php.net/>
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > Please always Cc to me when replying to me on the lists.
> > GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> > "Mind if I MFH ?" "What QA did you do on it?" "the usual?"
> > "ah... none :)"
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/