error C4430: missing type specifier - int assumed. Note: C++ does not support default-int - Prev solutions not working
<p>I am compiling VC++ code in Visual Studio 2010. This line in the code is giving two errors:</p>
<pre><code>assert.h
//ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Export void __ace_assert(const char *file, int line, const ACE_TCHAR *expression);
//ACE_END_VERSIONED_NAMESPACE_DECL
</code></pre>
<p>I have these files included in this file:</p>
<pre><code>#include /**/ &quot;ace/pre.h&quot;
#include /**/ &quot;ace/ACE_export.h&quot;
#include /**/ &quot;ace/config-all.h&quot;
#include &quot;ace/Versioned_Namespace.h&quot;
</code></pre>
<p>Errors:</p>
<ol>
<li><p>error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</p>
</li>
<li><p>error C2143: syntax error : missing ',' before '*'</p>
</li>
</ol>
<p>What is wrong with this line that could be causing these errors ?</p>
<p>I found other posts reporting similar error but none of the solutions have worked for me so far. Tried : <a href="https://stackoverflow.com/questions/10329770/error-c4430-c2146-missing-type-specifier-int-assumed-note-c-does-not-su">Error C4430, C2146 - missing type specifier - int assumed. Note: C++ does not support default-int</a></p>
<p><a href="https://stackoverflow.com/questions/17802716/vc-missing-type-specifier-int-assumed-note-c-does-not-support-default-in">VC++ missing type specifier - int assumed. Note: C++ does not support default-int</a></p>
<p><a href="https://stackoverflow.com/questions/20580387/error2error-c4430-missing-type-specifier-int-assumed-note-c-does-not-su">Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</a></p>
<p><a href="https://stackoverflow.com/questions/23283080/error-c4430-missing-type-specifier-int-assumed">Compiler error C4430: missing type specifier - int assumed</a></p>
<p>Thank you.</p>