IPB SourceForge.net Logo

Welcome Guest ( Log In | Register )

[ Outline ] · Standard · Linear+

> Build VCF with MSVC6 and ICC9.1 Failed, Build VCF with MSVC6 and ICC9.1 Failed

chinastone
post 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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topicStart Poll
Replies
Fraggle
post 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.


--------------------
FLAGRANT SYSTEM ERROR
Computer Over.
Virus = Very Yes.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ddiego
post 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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicTopic OptionsStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:
 

Lo-fi Version : 10th September 2010 - 10:52 PM