PHP Extension building issue on Win32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I followed instructions at http://www.devnewz.com/090902b.html about setting up correctly a VC++ project for building an extension, and I tried to build the provided "hello world" example.

Helas, I still get this "unresolved external symbol" kind of linker errors :

Compiling...
test1.cpp
[warnings about externals]
Linking...
test1.obj : error LNK2001: unresolved external symbol _zend_printf
Release_TS/php_test1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Is there anything I missed ? Except that I use VC++ 5 SP3 and php4ts.lib of latest 4.3.7 in stead of VC++ 6 and 4.2, I don't see any meaningful configuration discrepancy...

Below the first message that I - apparently wrongly and to no avail - sent to php-internals because I thought it was a Zend Engine settings problem.

Any help welcome ; I'm sure a lot of people here can help me by diverting some ticks of their precious brain processing time :D

VGR

Envelope-to: vgraux@xxxxxxxxxx
Mailing-List: contact internals-help@xxxxxxxxxxxxx; run by ezmlm
list-help: <mailto:internals-help@xxxxxxxxxxxxx>
list-unsubscribe: <mailto:internals-unsubscribe@xxxxxxxxxxxxx>
list-post: <mailto:internals@xxxxxxxxxxxxx>
Delivered-To: mailing list internals@xxxxxxxxxxxxx
Delivered-To: ezmlm-scan-internals@xxxxxxxxxxxxx
Delivered-To: ezmlm-internals@xxxxxxxxxxxxx
X-Sender: vgraux@xxxxxxxxxxxxxxx
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sun, 04 Jul 2004 23:00:31 +0200
To: internals@xxxxxxxxxxxxx
From: Vincent Graux <vgraux@xxxxxxxxxx>
Subject: [PHP-DEV] Probable Zend Engine/PHP issue on Win32
X-Virus-Scanned: by amavisd-new
X-DCC-tiscali.be-Metrics: basil 1027; Body=1 Fuz1=1 Fuz2=1


Hello,

Althought I usually try to avoid putting my fingers in a C/C++ IDE, I'm trying to build a DLL on Win32 via porting the code (it's the php_bwcache.dll, if you want to know)

I managed to get rid of all compile errors & warnings, but now I have linker errors that I feel are due to Zend Engine settings in the provided PHP/Windows binaries.

Even when successfully linking statically to php4ts.lib from latest & stable PHP 4.3.7, I still receive those linking errors and can't get rid of them :

--------------------Configuration: bwcache - Win32 Release_TS PHP--------------------
Compiling...
bware_cache.c
Linking...
Creating library php_bwcache.lib and object php_bwcache.exp
bware_cache.obj : error LNK2001: unresolved external symbol _compiler_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol _executor_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol _empty_string
bware_cache.obj : error LNK2001: unresolved external symbol _zend_compile_file
php_bwcache.dll : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Creating browse info file...


php_bwcache.dll - 5 error(s), 0 warning(s)
----------------

I upgraded my VC++ 5.0 compiler to SP3 and don't think this is an issue

I checked that compiler_globals_id (for instance) is indeed defined in the php4ts.dll (and so should be in the .lib import lib)

Any advice welcome on those strange "unresolved externals",

Thanks & Regards,

VGR



Il vaut mieux hasarder de sauver un coupable que de condamner un innocent.

-Zadig, Voltaire
Jean-Marie Arouet , 1694-1778

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

C'est proprement ne rien valoir que ne n'être utile à personne.

-Descartes
René Descartes, 1596-1650

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux