Re: warning C4049: compiler limit

  • Thread starter Carl Daniel [VC++ MVP]
  • Start date
C

Carl Daniel [VC++ MVP]

Kaisa said:
I'm compiling a large project with Visual C++.NET. During
compilation, I'm getting warnings stating "warning C4049:
compiler limit : terminating line number emission.
Compiler limit for line number is 65535", plus file names.
The length of the files mentioned really exceeds 65535
lines. However, the project compiles & links perfectly
fine. So what do these warnings actually mean? For
instance, if I have defined a subroutine that starts, let
us say, at line 70000, can a jump instruction to that
subroutine be generated?

The warning means that the debugger won't be able to match object code to
source code for line numbers over 65535, since the debug info only provides
a 16-bit space to store line number information. It has no effect on the
correctness of the compiled/linked program at all.

-cd
 
K

Kaisa Krannila

The warning means that the debugger won't be able to
match object code to
source code for line numbers over 65535,

OK, thanks, fine! (So better just to write bug-free code,
so that debugging is not needed?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top