473,323 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

[Compiler limit : linkage specifications nested too deeply] : How tosolve this one?

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.
Dec 10 '07 #1
4 3367
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?
Dec 10 '07 #2
fatal error C1045: compiler limit : linkage specifications nested too
deeply

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?
Dec 10 '07 #3
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
Dec 10 '07 #4
eminemence <em********@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.
You need folks who know the Visual C++ compiler. They hang out in the
microsoft.public.vc.* hierarchy. You might start with
microsoft.public.vc.ide_general

--
Tim Slattery
Sl********@bls.gov
http://members.cox.net/slatteryt
Dec 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ori Y | last post by:
Hi , i'm having some difficulties regarding using the Python/c api. I'm trying to bulid a deeply nested datastructure (i.e dict within a dict or list within a dict) Building the data stracture...
25
by: chad | last post by:
I am writing a program to do some reliability calculations that require several nested for-loops. However, I believe that as the models become more complex, the number of required for-loops will...
2
by: SJM | last post by:
In some VBA code I am building an SQL string to append a new record to a table. The string involves 40 fields. What I am finding is that it works with 39 fields but when I add 40 it fails with the...
4
by: ECathell | last post by:
I had read an article at one time that suggested a pattern to get around deeply nested if..then..else hell... Can anyone point me in that direction? select case statements wont work for me in...
2
by: elein | last post by:
Yes, I vacuumed. Reproduced on both 7.3.2 and 7.5. Brain dead java beans want order by clauses in views that they use. my view is: select .... from bigtable b left join lookuptable l order...
7
by: Kay Schluehr | last post by:
I want to manipulate a deeply nested list in a generic way at a determined place. Given a sequence of constant objects a1, a2, ..., aN and a variable x. Now construct a list from them recursively:...
17
by: Student | last post by:
Hi All, I have an assignment for my Programming language project to create a compiler that takes a C++ file as input and translate it into the C file. Here I have to take care of inheritance and...
13
by: fctk | last post by:
source: http://rm-f.net/~orange/devel/specifications/c89-draft.html#3.1.2.2 there are two passages in this paragraph i can't fully understand: 1) "If the declaration of an identifier for an...
49
by: valentin tihomirov | last post by:
fDeleted = false; uint jobId; foreach (Struct struct in structures) { if (struct.type == JOB) { jobId = struct.id; if (struct.dataType == STATUS) fDeteted = (struct.data & STATUS_DELETED) !=...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.