转发: [icu-support] 回复: [icu-support] [ICU]question about compile ICU3.6 with VS2005 + SP1

View: New views
1 Messages — Rating Filter:   Alert me  

转发: [icu-support] 回复: [icu-support] [ICU]question about compile ICU3.6 with VS2005 + SP1

by WCNM JC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


----- 转发邮件 ----
发件人: WCNM JC <kodwim@...>
收件人: ICU support mailing list <icu-support@...>
抄送: grhoten@...
已发送: 2007/4/28(周六), 上午10:42:12
主题: [icu-support] 回复: [icu-support] [ICU]question about compile ICU3.6 with VS2005 + SP1

Hi George,
      thank you for your advice, I changed "parallel project builds" to 1, and it still don't work,
I think maybe it's not such problem, on the other machine, I got two CPUs too, but it works fine.
the only diffirent between these two machines is : the work one don't upgrade VS2005 with
SP1 for VS2005. I don't know if VS2005 SP1 break  any behaviour of the original VS2005.
     and for the error log last Email I provided, which is not so clear,  here is the buildlog.htm of
io module, all the other modules are most the same problem.
    
 
Build Log
   

Build started: Project: io, Configuration: Release|Win32

Command Lines
   
Creating temporary file "c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001734242760.rsp" with contents
[
/O2 /I "..\..\include" /I "..\common" /D "WIN32" /D "NDEBUG" /D "U_IO_IMPLEMENTATION" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D "_MBCS" /GF /FD /EHsc /MD /Gy /Za /Fp".\Release/ticuio.pch" /Fo".\Release/" /Fd".\Release/" /FR".\Release\\" /W3 /c .\ustdio.c

.\uscanf_p.c

.\uscanf.c

.\uprntf_p.c

.\uprintf.c

.\ufmt_cmn.c

.\ufile.c

.\ucln_io.c

.\sscanf.c

.\sprintf.c

.\locbund.c
]
Creating command line "cl.exe @c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001734242760.rsp /nologo /errorReport:queue"
Creating temporary file "c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001834242760.rsp" with contents
[
/O2 /I "..\..\include" /I "..\common" /D "WIN32" /D "NDEBUG" /D "U_IO_IMPLEMENTATION" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D "_MBCS" /GF /FD /EHsc /MD /Gy /Fp".\Release/ticuio.pch" /Fo".\Release/" /Fd".\Release/" /FR".\Release\\" /W3 /c .\ustream.cpp
]
Creating command line "cl.exe @c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001834242760.rsp /nologo /errorReport:queue"
Creating temporary file "c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001934242760.rsp" with contents
[
/OUT:"..\..\bin\ticuio36.dll" /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:".\Release\ticuio36.dll.intermediate.manifest" /PDB:".\..\..\lib\ticuio36.pdb" /OPT:ICF /BASE:"0x4ab00000" /IMPLIB:"..\..\lib\ticuio.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "..\..\lib\ticuin.lib"

".\Release\locbund.obj"

".\Release\sprintf.obj"

".\Release\sscanf.obj"

".\Release\ucln_io.obj"

".\Release\ufile.obj"

".\Release\ufmt_cmn.obj"

".\Release\uprintf.obj"

".\Release\uprntf_p.obj"

".\Release\uscanf.obj"

".\Release\uscanf_p.obj"

".\Release\ustdio.obj"

".\Release\ustream.obj"

".\Release\io.res"
]
Creating command line "link.exe @c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001934242760.rsp /NOLOGO /ERRORREPORT:QUEUE"
Creating temporary file "c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001A34242760.rsp" with contents
[
/o ".\..\..\lib/io.bsc"

.\Release\sprintf.sbr

.\Release\sscanf.sbr

.\Release\ucln_io.sbr

.\Release\ufile.sbr

.\Release\ufmt_cmn.sbr

.\Release\uprintf.sbr

.\Release\uprntf_p.sbr

.\Release\uscanf.sbr

.\Release\uscanf_p.sbr

.\Release\ustdio.sbr

.\Release\ustream.sbr

.\Release\locbund.sbr
]
Creating command line "bscmake.exe @c:\PHOENIX\LC\bld\icu\source\io\Release\RSP00001A34242760.rsp /nologo"
Output Window
   
Compiling...
ustdio.c
uscanf_p.c
uscanf.c
uprntf_p.c
uprintf.c
ufmt_cmn.c
ufile.c
.\ufile.c(116) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
ucln_io.c
sscanf.c
sprintf.c
locbund.c
.\locbund.c(92) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Generating Code...
Compiling...
ustream.cpp
Linking...
   Creating library ..\..\lib\ticuio.lib and object ..\..\lib\ticuio.exp
locbund.obj : error LNK2019: unresolved external symbol _umtx_unlock_3_6 referenced in function _copyInvariantFormatter
locbund.obj : error LNK2019: unresolved external symbol _umtx_lock_3_6 referenced in function _copyInvariantFormatter
uprintf.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
uprntf_p.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
uscanf.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
ustdio.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
locbund.obj : error LNK2019: unresolved external symbol _uprv_malloc_3_6 referenced in function _u_locbund_init_3_6
sprintf.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
sscanf.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
ufile.obj : error LNK2001: unresolved external symbol _uprv_malloc_3_6
locbund.obj : error LNK2019: unresolved external symbol _uloc_getDefault_3_6 referenced in function _u_locbund_init_3_6
uprintf.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
uprntf_p.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
uscanf.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
ustdio.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
locbund.obj : error LNK2019: unresolved external symbol _uprv_free_3_6 referenced in function _u_locbund_close_3_6
sprintf.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
sscanf.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
ufile.obj : error LNK2001: unresolved external symbol _uprv_free_3_6
sprintf.obj : error LNK2019: unresolved external symbol _u_strncpy_3_6 referenced in function _u_sprintf_write
ustdio.obj : error LNK2001: unresolved external symbol _u_strncpy_3_6
sprintf.obj : error LNK2019: unresolved external symbol _u_memset_3_6 referenced in function _u_sprintf_pad_and_justify
ustdio.obj : error LNK2001: unresolved external symbol _u_charsToUChars_3_6
sprintf.obj : error LNK2019: unresolved external symbol _u_charsToUChars_3_6 referenced in function _u_vsnprintf_3_6
sscanf.obj : error LNK2001: unresolved external symbol _u_charsToUChars_3_6
uprintf.obj : error LNK2001: unresolved external symbol _u_charsToUChars_3_6
uscanf.obj : error LNK2001: unresolved external symbol _u_charsToUChars_3_6
sscanf.obj : error LNK2019: unresolved external symbol _u_strlen_3_6 referenced in function _u_vsscanf_u_3_6
uprntf_p.obj : error LNK2001: unresolved external symbol _u_strlen_3_6
ustdio.obj : error LNK2001: unresolved external symbol _u_strlen_3_6
ucln_io.obj : error LNK2019: unresolved external symbol _ucln_registerCleanup_3_6 referenced in function _ucln_io_registerCleanup_3_6
ufile.obj : error LNK2019: unresolved external symbol _ucnv_open_3_6 referenced in function _u_finit_3_6
ufile.obj : error LNK2019: unresolved external symbol _ucnv_reset_3_6 referenced in function _u_frewind_3_6
ufile.obj : error LNK2019: unresolved external symbol _ucnv_close_3_6 referenced in function _u_fclose_3_6
ufile.obj : error LNK2019: unresolved external symbol _ucnv_getName_3_6 referenced in function _u_fgetcodepage_3_6
ufmt_cmn.obj : error LNK2019: unresolved external symbol _u_isspace_3_6 referenced in function _ufmt_utop_3_6
ufmt_cmn.obj : error LNK2019: unresolved external symbol _u_releaseDefaultConverter_3_6 referenced in function _ufmt_defaultCPToUnicode_3_6
uscanf_p.obj : error LNK2001: unresolved external symbol _u_releaseDefaultConverter_3_6
ustream.obj : error LNK2001: unresolved external symbol _u_releaseDefaultConverter_3_6
ufmt_cmn.obj : error LNK2019: unresolved external symbol _ucnv_toUnicode_3_6 referenced in function _ufmt_defaultCPToUnicode_3_6
ustdio.obj : error LNK2001: unresolved external symbol _ucnv_toUnicode_3_6
ustream.obj : error LNK2001: unresolved external symbol _ucnv_toUnicode_3_6
ufmt_cmn.obj : error LNK2019: unresolved external symbol _u_getDefaultConverter_3_6 referenced in function _ufmt_defaultCPToUnicode_3_6
uscanf_p.obj : error LNK2001: unresolved external symbol _u_getDefaultConverter_3_6
ustream.obj : error LNK2001: unresolved external symbol _u_getDefaultConverter_3_6
uprntf_p.obj : error LNK2019: unresolved external symbol _u_strToUpper_3_6 referenced in function _u_printf_scientific_handler
uprntf_p.obj : error LNK2019: unresolved external symbol _u_strToLower_3_6 referenced in function _u_printf_scientific_handler
uprntf_p.obj : error LNK2019: unresolved external symbol _uprv_pow10_3_6 referenced in function _u_printf_scidbl_handler
uprntf_p.obj : error LNK2019: unresolved external symbol _uprv_trunc_3_6 referenced in function _u_printf_scidbl_handler
uscanf_p.obj : error LNK2019: unresolved external symbol _u_isWhitespace_3_6 referenced in function _u_scanf_skip_leading_ws
ustream.obj : error LNK2001: unresolved external symbol _u_isWhitespace_3_6
uscanf_p.obj : error LNK2019: unresolved external symbol _ucnv_fromUnicode_3_6 referenced in function _u_scanf_string_handler
ustdio.obj : error LNK2001: unresolved external symbol _ucnv_fromUnicode_3_6
ustream.obj : error LNK2001: unresolved external symbol _ucnv_fromUnicode_3_6
uscanf_p.obj : error LNK2019: unresolved external symbol _ucnv_getMaxCharSize_3_6 referenced in function _u_scanf_string_handler
uscanf_p.obj : error LNK2019: unresolved external symbol _uset_close_3_6 referenced in function _u_scanf_scanset_handler
uscanf_p.obj : error LNK2019: unresolved external symbol _uset_contains_3_6 referenced in function _u_scanf_scanset_handler
uscanf_p.obj : error LNK2019: unresolved external symbol _uset_applyPattern_3_6 referenced in function _u_scanf_scanset_handler
uscanf_p.obj : error LNK2019: unresolved external symbol _uset_open_3_6 referenced in function _u_scanf_scanset_handler
ustdio.obj : error LNK2019: unresolved external symbol _uprv_realloc_3_6 referenced in function _u_file_translit
ustdio.obj : error LNK2019: unresolved external symbol _u_UCharsToChars_3_6 referenced in function _u_file_write_flush_3_6
ustdio.obj : error LNK2019: unresolved external symbol _ucnv_getMinCharSize_3_6 referenced in function _ufile_fill_uchar_buffer_3_6
ustream.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: class icu_3_6::UnicodeString & __thiscall icu_3_6::UnicodeString::doReplace(int,int,wchar_t const *,int,int)" (__imp_?doReplace@UnicodeString@icu_3_6@@AAEAAV12@HHPB_WHH@Z) referenced in function "class std::basic_istream > & __cdecl icu_3_6::operator>>(class std::basic_istream > &,class icu_3_6::UnicodeString &)" (??5icu_3_6@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV12@AAVUnicodeString@0@@Z)
ustream.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall icu_3_6::UnicodeString::unBogus(void)" (__imp_?unBogus@UnicodeString@icu_3_6@@AAEXXZ) referenced in function "class std::basic_istream > & __cdecl icu_3_6::operator>>(class std::basic_istream > &,class icu_3_6::UnicodeString &)" (??5icu_3_6@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV12@AAVUnicodeString@0@@Z)
..\..\bin\ticuio36.dll : fatal error LNK1120: 34 unresolved externals
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Results
   
Build log was saved at "file://c:\PHOENIX\LC\bld\icu\source\io\Release\BuildLog.htm"
io - 65 error(s), 2 warning(s)
 
 
Best Regards!
/Yuming


----- 原始邮件 ----
发件人: George Rhoten <grhoten@...>
收件人: ICU support mailing list <icu-support@...>
已发送: 2007/4/27(周五), 下午11:34:28
主题: Re: [icu-support] [ICU]question about compile ICU3.6 with VS2005 + SP1

>       I met a problem while I compile ICU 3.6 with VS2005+SP1 under
> Windows 2003 ES, before I install VS2005 SP1, everything is fine.
> but after install VS2005SP1,  following is part of the errors.
>
> 2>TibetanReordering.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static void __cdecl icu_3_6::
> UMemory::operator delete(void *)" (__imp_??3UMemory@icu_3_6@@SAXPAX@Z)

I have a feeling about what is going on here. You probably have a
multi-core CPU, and Visual Studio wants to do parallel builds.
TibetanReordering.obj is in the layout library, and it shouldn't be the
second thing compiled. The layout library depends on the common library,
which depends on stubdata. You can't easily migrate the project files to
MSVC 2005 due to this issue.

Here's a couple of suggestions:

1) Change the "parallel project builds" to 1 under "Tools|Options|Projects
and Solutions|Build and Run" panel of Visual Studio.
or
2) Fix all the dependencies between the project files, and make sure that
the "Link Library Dependencies" is set to yes on all the project files.

The current svn trunk already uses Visual Studio 2005 project files, and
it works fine. We don't see these issues. The svn trunk is considered
unstable. So you probably shouldn't use it in production level code, but
you could use it to be inspired on how to fix it yourself.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
icu-support mailing list - icu-support@...
To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support



抢注雅虎免费邮箱3.5G容量,20M附件!
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
icu-support mailing list - icu-support@...
To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support



抢注雅虎免费邮箱-3.5G容量,20M附件!
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
icu-support mailing list - icu-support@...
To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support