In message
<f0**********************************@b40g2000prf. googlegroups.com>,
eminemence <em********@gmail.comwrites
[Please don't top-post - response moved to its proper place]
>
On Dec 10, 12:14 pm, Sarath <CSar...@gmail.comwrote:
>On Dec 10, 4:11 pm, eminemence <emineme...@gmail.comwrote:
Hi all,
I am getting this strange and nearly unsolvable error in VS 6.
The project has some thousands of files,so adding some code sample
here is out of question.
I have checked on the extern "C" bracket completion on most of the
files possible.
Can someone who has faced this problem earlier,share their solutions?
Thanks in advance.
What's the error you've got?
fatal error C1045: compiler limit : linkage specifications nested too
deeply
Well, that's clear enough. Typing that phrase into Google yields this
explanation:
(
http://msdn2.microsoft.com/en-us/lib...04(VS.60).aspx)
"The nesting of externals exceeded the capacity of the compiler. Nested
externals are allowed when specifying the external linkage type (such as
extern C++).
Make sure that nested externals have appropriate closing braces."
In other words, what the compiler is seeing is this:
extern "C" {
extern "C" {
extern "C" {
extern "C" {
// ...declarations
}
}
}
}
instead of this:
extern "C" {
//
}
extern "C" {
//
}
extern "C" {
//
}
extern "C" {
//
}
//...
I'd guess that your 'extern "C" bracket completion' (whatever that is)
is probably in the wrong place in your headers relative to the nested
#includes, so it's wrapping around more code than you intended.
--
Richard Herring