943,520 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 10063
  • C++ RSS
Jun 15th, 2009
0

missing type specifier - C++ does not support default-int

Expand Post »
Hi,

What can I do for this error?

error C4430: missing type specifier - int assumed. Note: C++ does not

support default-int.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mathueie is offline Offline
20 posts
since Apr 2009
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

This mostly appears when you have not specified main to return a certain type, Though that is just in general , It would be better if you would post your code down.

C++ Syntax (Toggle Plain Text)
  1. main(){//Causes the error

C++ Syntax (Toggle Plain Text)
  1. int main(){//No Error,

Though that is pretty generalised, Hope its the same error,
Reputation Points: 673
Solved Threads: 125
Practically a Posting Shark
Sky Diploma is offline Offline
818 posts
since Mar 2008
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

This mostly appears when you have not specified main to return a certain type, Though that is just in general , It would be better if you would post your code down.

C++ Syntax (Toggle Plain Text)
  1. main(){//Causes the error

C++ Syntax (Toggle Plain Text)
  1. int main(){//No Error,

Though that is pretty generalised, Hope its the same error,


C++ Syntax (Toggle Plain Text)
  1. --------------------------------------------------
  2. CPU.cpp file
  3. -----------------------------------------------------
  4. #include "StdAfx.h"
  5. #include "cpu.h"
  6. #include <iostream>
  7. #include <tchar.h>
  8.  
  9. TKLong CPU::s_time = 0;
  10. TKLong CPU::s_idleTime;
  11. TKLong CPU::s_kernelTime;
  12. TKLong CPU::s_userTime;
  13.  
  14. int CPU::s_count = 0;
  15. int CPU::s_index = 0;
  16. int CPU::s_lastCpu = 0;
  17. int CPU::s_cpu[];
  18.  
  19. HINSTANCE CPU::s_hKernel = NULL;
  20.  
  21. pfnGetSystemTimes CPU::s_pfnGetSystemTimes = NULL;
  22.  
  23. CPU::CPU()
  24. {
  25. if( s_hKernel == NULL )
  26. {
  27. s_hKernel = LoadLibrary( _T("Kernel32.dll") );
  28. if( s_hKernel != NULL )
  29. {
  30. s_pfnGetSystemTimes = (pfnGetSystemTimes)GetProcAddress( s_hKernel, "GetSystemTimes" );
  31. if( s_pfnGetSystemTimes == NULL )
  32. {
  33. FreeLibrary( s_hKernel ); s_hKernel = NULL;
  34. }
  35. }
  36. }
  37. }
  38.  
  39. CPU::~CPU()
  40. {
  41. if( s_hKernel == NULL )
  42. {
  43. FreeLibrary( s_hKernel ); s_hKernel = NULL;
  44. }
  45. }
  46.  
  47. void CPU::GetUsage()
  48. {
  49. dwStartTick = GetTickCount();
  50. dwIdleSt = GetIdleTime();
  51. Sleep();
  52. dwStopTick = GetTickCount();
  53. dwIdleEd = GetIdleTime();
  54. PercentIdle = ((100*(dwIdleEd - dwIdleSt)) / (dwStopTick - dwStartTick));
  55.  
  56. TKLong sTime;
  57. int sLastCpu;
  58.  
  59. sTime = s_time;
  60. sLastCpu = s_lastCpu;
  61.  
  62. TKLong time;
  63. TKLong idleTime;
  64. TKLong kernelTime;
  65. TKLong userTime;
  66.  
  67. GetSystemTimeAsFileTime( (LPFILETIME)&time );
  68.  
  69. if( sTime == 0 )
  70. {
  71. if( s_pfnGetSystemTimes != NULL )
  72. {
  73. s_pfnGetSystemTimes( (LPFILETIME)&idleTime, (LPFILETIME)&kernelTime, (LPFILETIME)&userTime );
  74. }
  75. else
  76. {
  77. idleTime = 0;
  78. kernelTime = 0;
  79. userTime = 0;
  80. }
  81.  
  82. s_time = time;
  83. s_idleTime = idleTime;
  84. s_kernelTime = kernelTime;
  85. s_userTime = userTime;
  86.  
  87. s_lastCpu = 0;
  88.  
  89. sLastCpu = s_lastCpu;
  90. }
  91.  
  92. if( s_pfnGetSystemTimes != NULL )
  93. {
  94. s_pfnGetSystemTimes( (LPFILETIME)&idleTime, (LPFILETIME)&kernelTime, (LPFILETIME)&userTime );
  95. }
  96. else
  97. {
  98. idleTime = 0;
  99. kernelTime = 0;
  100. userTime = 0;
  101. }
  102.  
  103. int cpu;
  104.  
  105. {
  106.  
  107. TKLong usr = userTime - s_userTime;
  108. TKLong ker = kernelTime - s_kernelTime;
  109. TKLong idl = idleTime - s_idleTime;
  110.  
  111. TKLong sys = (usr + ker);
  112.  
  113. if( sys == 0 )
  114. {
  115. cpu = 0;
  116. }
  117. else
  118. {
  119. cpu = (int)( (sys - idl) *100 / sys );
  120. }
  121.  
  122. s_time = time;
  123.  
  124. s_idleTime = idleTime;
  125. s_kernelTime = kernelTime;
  126. s_userTime = userTime;
  127.  
  128. s_cpu[(s_index++) %5] = cpu;
  129.  
  130. s_count ++;
  131. if( s_count > 5 )
  132. {
  133. s_count = 5;
  134. }
  135.  
  136. int i;
  137. cpu = 0;
  138. for( i = 0; i < s_count; i++ )
  139. {
  140. cpu += s_cpu[i];
  141. }
  142.  
  143. cpu = cpu / s_count;
  144. s_lastCpu = cpu;
  145. sLastCpu = s_lastCpu;
  146. }
  147.  
  148. cout<<"systm usage........"<<sLastCpu<<"\n";
  149. }
  150.  
  151.  
  152.  
  153.  
  154. int main()
  155. {
  156. CPU cpu1;
  157. cpu1.GetUsage();
  158. return 0;
  159. }
  160.  
  161.  
  162. -------------------------------------------------------------------
  163. CPU.h file
  164. -----------------------------------------------------------------
  165.  
  166. #pragma once
  167.  
  168. //#include "TKTime.h"
  169. #include <iostream>
  170. #include <winbase.h>
  171. #include <windows.h>
  172.  
  173.  
  174. using namespace std;
  175.  
  176. typedef BOOL ( __stdcall * pfnGetSystemTimes)( LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime );
  177. typedef __int64 TKLong;
  178. #define _WIN32_WINNT (0x0500)
  179. #define UNICODE
  180. #define _UNICODE
  181.  
  182. class CPU
  183. {
  184. public:
  185. CPU( void );
  186. ~CPU( void );
  187.  
  188. void GetUsage();
  189. private:
  190.  
  191. static TKLong s_time;
  192. static TKLong s_idleTime;
  193. static TKLong s_kernelTime;
  194. static TKLong s_userTime;
  195.  
  196. static int s_lastCpu;
  197. static int s_cpu[5];
  198. static int s_count;
  199. static int s_index;
  200.  
  201. static TKLong s_lastUpTime;
  202.  
  203. static HINSTANCE s_hKernel;
  204. static pfnGetSystemTimes s_pfnGetSystemTimes;
  205. };
Last edited by Ancient Dragon; Jun 15th, 2009 at 9:07 am. Reason: add cide tags -- you should learn to use then too.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mathueie is offline Offline
20 posts
since Apr 2009
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

It would be helpful if you told us which line the error occurred on so that we don't have to read the whole program to find out.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,945 posts
since Aug 2005
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

As Sky has mentioned, there are several potential causes of this error.
I think it's most often related to incorrectly/ambiguously defined variables, function parameters or function return types.

From what I understand of this (I have encountered it before):
In MS's attempts to make VS2005 more conformable to the standard, VS2005 onwards requires all variables, parameters and return types to be explicitly declared.

In previous editions of VS, the compiler would assume int for variables which were ambiguously defined...

Consider this as a random example:
C++ Syntax (Toggle Plain Text)
  1. for ( int i = 0; i < (const)(myVector.size()); i++ )
  2. {
  3. // Do something....
  4. }
QUICK NOTE: Assume that myVector is declared elsewhere as a std::vector!

in VS 2003 and earlier, the above code would compile correctly without errors or warnings, but in VS 2005 onwards you'll get the C4430 error/warning message.

Now what was wrong with the above code?
Well, if you look at the for loop, particularly the conditional part, what do we see?
C++ Syntax (Toggle Plain Text)
  1. i<(const)(myVector.size());
From the first part of the for loop, We can see that i is declared as an int, but what about myVector.size() in the conditional part?? What's going on there?

Well, the return value of the call to myVector.size() has been cast to const, (probably by some insanely overzealous member of the const-correctness brigade!), but what would that convert to? const what?

In previous versions of VS (2003 and earlier), the compiler would assume that int was implied, so the returned value would be cast to int (or const int in this example) and the for loop would work.

Note: The call to myVector.size() returns a size_t, not an int. So without 'captain const' performing his stupid cast and the compilers resultant assumption, the for loop would've probably failed to compile, as I believe int and size_t are incompatible for direct comparison!

For VS2005 onwards, the compiler will no longer make any assumptions in these sorts of cases and will quite correctly flag an error.

So in order to get the code in the example to compile in VS2005 onwards, you'd probably have to change the for loops declaration to be something like:
C++ Syntax (Toggle Plain Text)
  1. for ( int i = 0; i < (int)(myVector.size()); i++ )
  2. {
  3. // Do something....
  4. }

or perhaps (depending on what's going to happen inside the body of the loop):

C++ Syntax (Toggle Plain Text)
  1. for ( size_t i = 0; i < myVector.size(); i++ )
  2. {
  3. // Do something....
  4. }

I can't guarantee that the above info is absolutely 100% correct, but it's what I've been led to believe...It worked for me! (but I have been known to be wrong from time to time!)

I also can't guarantee that these are the only types of situations in which the error will be thrown, there may be other conditions where this particular error is caused!

Hope this is of some help!
Jas.
Last edited by JasonHippy; Jun 15th, 2009 at 10:05 am. Reason: smelling pistakes!
Reputation Points: 590
Solved Threads: 123
Practically a Master Poster
JasonHippy is offline Offline
672 posts
since Jan 2009
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

It would be helpful if you told us which line the error occurred on so that we don't have to read the whole program to find out.



Hi,

I got error in winbase.h. totally 146 errors . All errors are same.
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I got error in all DWORD and WORD (winbase.h)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mathueie is offline Offline
20 posts
since Apr 2009
Jun 15th, 2009
2

Re: missing type specifier - C++ does not support default-int

>#include <winbase.h>
Remove that line. It's superfluous anyway as windows.h correctly includes winbase.h.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

After that place all system header includes in StdAfx.h (and remove them from .cpp files (after #include "StdAfx.h" )...
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008
Jun 15th, 2009
0

Re: missing type specifier - C++ does not support default-int

Click to Expand / Collapse  Quote originally posted by Narue ...
>#include <winbase.h>
Remove that line. It's superfluous anyway as windows.h correctly includes winbase.h.


Hi,

i removed winbase.h file...
I got following error.



C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2079: 'IRpcStubBuffer' uses undefined struct 'IRpcStubBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2371: 'IRpcChannelBuffer' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : error C2146: syntax error : missing ';' before identifier 'IUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : error C2146: syntax error : missing ';' before identifier 'AsyncIUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : error C2146: syntax error : missing ';' before identifier 'IClassFactory'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(109) : error C2371: 'IUnknown' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : see declaration of 'IUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(135) : error C2065: 'This' : undeclared identifier
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2065: '_pRpcChannelBuffer' : undeclared identifier
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2182: 'IUnknown_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(138) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(145) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2182: 'IUnknown_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(147) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(154) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2182: 'IUnknown_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(156) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(285) : error C2371: 'AsyncIUnknown' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : see declaration of 'AsyncIUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(396) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2182: 'AsyncIUnknown_Begin_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(398) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(408) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2182: 'AsyncIUnknown_Finish_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(410) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(419) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2182: 'AsyncIUnknown_Begin_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(421) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(430) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2182: 'AsyncIUnknown_Finish_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(432) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(441) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2182: 'AsyncIUnknown_Begin_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(443) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(452) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2182: 'AsyncIUnknown_Finish_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(454) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(475) : error C2371: 'IClassFactory' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : see declaration of 'IClassFactory'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(559) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2182: 'IClassFactory_RemoteCreateInstance_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(561) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(571) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2182: 'IClassFactory_RemoteLockServer_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(573) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : error C2146: syntax error : missing ';' before identifier 'IMarshal'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : error C2146: syntax error : missing ';' before identifier 'IMarshal2'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : error C2146: syntax error : missing ';' before identifier 'IMalloc'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : error C2146: syntax error : missing ';' before identifier 'IMallocSpy'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : error C2146: syntax error : missing ';' before identifier 'IStdMarshalInfo'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : error C2146: syntax error : missing ';' before identifier 'IExternalConnection'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : error C2146: syntax error : missing ';' before identifier 'IMultiQI'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : error C2146: syntax error : missing ';' before identifier 'AsyncIMultiQI'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : error C2146: syntax error : missing ';' before identifier 'IInternalUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : error C2146: syntax error : missing ';' before identifier 'IEnumUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : error C2146: syntax error : missing ';' before identifier 'IBindCtx'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : error C2146: syntax error : missing ';' before identifier 'IEnumMoniker'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : fatal error C1003: error count exceeds 100; stopping compilation
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mathueie is offline Offline
20 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Using command line argument as variable in another class
Next Thread in C++ Forum Timeline: Program crashes question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC