Wincache and winres.h vs winresrc.h
| From: | Richard Quadling | Date: | Mon, 16 Nov 2009 10:10:26 +0000 |
| Subject: | Wincache and winres.h vs winresrc.h | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-6780@lists.php.net to get a copy of this message | ||
Hi.
I'm using the Express Edition of MS VC++ 2008.
I can just about build. But when I add wincache to my mix, I'm getting
a problem with a missing header file ...
winres.h
C:\php-sdk\php_53dev\vc9\x86\PHP_5_3>type config.nice.bat
cscript /nologo configure.js "--disable-zts" "--enable-crt-debug"
"--enable-debug-pack" "--enable-bbcode=shared"
"--enable-win32service=shared" "--enable-wincache=shared" %*
C:\php-sdk\php_53dev\vc9\x86\PHP_5_3>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
EXT gd build complete
EXT bbcode build complete
EXT win32service build complete
rc /fo Release\php_wincache.dll.res /d
FILE_DESCRIPTION="\"php_wincache.dll\"" /d
FILE_NAME="\"php_wincache.dll\"" /d PRODUCT_NAME="\"PHP
php_wincache.dll\"" /d THANKS_GUYS="\"\"" ..\pecl\wincache\template.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
..\pecl\wincache\template.rc(38) : fatal error RC1015: cannot open
include file 'winres.h'.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
SDKs\Windows\v6.1\Bin\rc.EXE"' : return code '0x1'
Stop.
I haven't got one a winres.h at all.
If I edit the pecl/wincache/template.rc so that it looks for
winresrc.h, then all is well.
Index: template.rc
===================================================================
--- template.rc (revision 36439)
+++ template.rc (working copy)
@@ -15,7 +15,7 @@
# error dont edit with MSVC
#endif
-#include "winres.h"
+#include "winresrc.h"
#include "main/php_version.h"
#include "version.h"
So, I guess this is my end having a problem, but where is winres.h
coming from if it isn't winresrc.h?
Regards,
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling