|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-01 20:16 UTC] fmk@php.net
[2010-03-03 02:16 UTC] sig12 at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 00:00:02 2025 UTC |
Description: ------------ I'm compiling PHP 5.4.1 with Microsoft Visual Studio 2005. But with msvcrt I get an unwanted dependency of "msvcr80.dll". I tried compile with static link option: "/MT" in place of "/MD" (using libcmt). But without success... --- Error Log (with libcmt and without msvcrt): Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp zend_strtod.obj : error LNK2019: unresolved external symbol __HUGE referenced in function _zend_strtod math.obj : error LNK2001: unresolved external symbol __HUGE php_variables.obj : error LNK2019: unresolved external symbol __environ referenced in function __php_import_environment_variables basic_functions.obj : error LNK2001: unresolved external symbol __environinfo.obj : error LNK2001: unresolved external symbol __environ Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Arquivos de programas\Microsoft Visual Studio 8\VC\BIN\link.exe"' : return code '0x460' Stop. ----------------------- Peace of code from "configure.js": ADD_FLAG("CFLAGS", "/LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0"); ... // we want msvcrt in the PHP DLL ADD_FLAG("PHP_LDFLAGS", "/nodefaultlib:libcmt"); --------- What will be done with msvcrt dependecy of msvcr80.dll ? PHP can't be compiled with static linked library, and with dynamic library is got dependecy of a external dll (Need to install .NET Framework on machines that will run theses compiled PHP). How do I compile a stand alone php5ts.dll in VC++ 8.0.