Build VCF with MSVC6 and ICC9.1 Failed, Build VCF with MSVC6 and ICC9.1 Failed
Build VCF with MSVC6 and ICC9.1 Failed, Build VCF with MSVC6 and ICC9.1 Failed
| chinastone |
Apr 2 2007, 03:47 AM
Post
#1
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 2-April 07 Member No.: 698 |
when I Build VCF with MSVC6 and ICC9.1, it is Failed!
the errors show: :\bin\CPP\VCF-0.9.0\src\vcf\FoundationKit\Win32LocalePeer.cpp(515): error: argument of type "unsigned short *" is incompatible with parameter of type "size_t={unsigned int}" swprintf( tmp, L"%d", (unsigned int)val); ^ D:\bin\CPP\VCF-0.9.0\src\vcf\FoundationKit\Win32LocalePeer.cpp(515): error: argument of type "unsigned int" is incompatible with parameter of type "const wchar_t={unsigned short} *" swprintf( tmp, L"%d", (unsigned int)val); the errors maybe occur with: " #if defined(VCF_CW) || defined(VCF_DMC) swprintf( tmp, sizeof(tmp)-1, L"%d", val); #else swprintf( tmp, L"%d", (unsigned int)val); #endif " the "swprint"function, how do I resolve it? |
![]() ![]() ![]() |
| Fraggle |
Apr 3 2007, 01:39 AM
Post
#2
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 518 Joined: 6-December 04 Member No.: 112 |
QUOTE the errors maybe occur with: #if defined(VCF_CW) || defined(VCF_DMC) swprintf( tmp, sizeof(tmp)-1, L"%d", val); #else swprintf( tmp, L"%d", (unsigned int)val); #endif Try this CODE //#if defined(VCF_CW) || defined(VCF_DMC) swprintf( tmp, sizeof(tmp)-1, L"%d", val); //#else //swprintf( tmp, L"%d", (unsigned int)val); //#endif If that works, then we'll need to add the Intel Compiler as a define for that section, I think the basic defines are present for Intel, but I'm not sure. -------------------- |
| ddiego |
Apr 24 2008, 05:23 PM
Post
#3
|
|
VCF Lead Developer ![]() ![]() ![]() Group: Lead Developer Posts: 2834 Joined: 2-August 03 Member No.: 2 |
QUOTE(Fraggle @ Apr 2 2007, 09:39 PM) QUOTE the errors maybe occur with: #if defined(VCF_CW) || defined(VCF_DMC) swprintf( tmp, sizeof(tmp)-1, L"%d", val); #else swprintf( tmp, L"%d", (unsigned int)val); #endif Try this CODE //#if defined(VCF_CW) || defined(VCF_DMC) swprintf( tmp, sizeof(tmp)-1, L"%d", val); //#else //swprintf( tmp, L"%d", (unsigned int)val); //#endif If that works, then we'll need to add the Intel Compiler as a define for that section, I think the basic defines are present for Intel, but I'm not sure. So if this works do we need to add a new compiler before the release? Or has this already been added? |
chinastone Build VCF with MSVC6 and ICC9.1 Failed Apr 2 2007, 03:47 AM
kdmix Actually I don't remember that VCF has ever be... Apr 2 2007, 08:29 AM
chinastone [b]comment just like what you said ,it works.
[co... Apr 3 2007, 01:59 AM![]() ![]() ![]() |
| Lo-fi Version | : 10th September 2010 - 10:52 PM |