DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Pan Guest

    Modify the last question. C4904 -> C4049. How to fix the warning C4049 in visual c++ ?


    How to fix the warning C4049 in visual c++ ?

  2. #2
    Ralph Guest

    Re: Modify the last question. C4904 -> C4049. How to fix the warning C4049 in visual c++ ?


    "Pan" <pan7587@ms26.hinet.net> wrote:
    >
    >How to fix the warning C4049 in visual c++ ?


    " From M$:
    Compiler Warning (level 1) C4049
    compiler limit : terminating line number emission

    The file contained more than 64K source lines. No line number support is
    available beyond this limit.
    "

    You have a file which is, 'after' preprocessing, too long to be submitted
    to the next pass. Like the manual says, "You ran out of lines".

    You need to determine the offending file: Compile each file separately in
    in turn (Ctrl+F7). Remember the preprocessor #includes EVERY header and every
    header included #includes ALL those headers and so on and so on...

    It is highly unlikely you actually meant to write a file whose translation
    unit would be that large. (If you did, then you need to cut it back.) More
    likely you have some kind of 'circular' relationship going on. You have #included
    a file which #includes its self.

    (I am not saying you have done this...but) A very common bad habit to get
    into is #including headers in header files. (No headers but standard/runtime
    libraries should ever be included in a header file, most of the time.) All
    headers should be #defined in the translation unit itself. This helps to
    avoid the above situation.


  3. #3
    www.exontrol.com Guest

    Re: Modify the last question. C4904 -> C4049. How to fix the warning C4049 in visual c++ ?


    "Pan" <pan7587@ms26.hinet.net> wrote:
    >
    >How to fix the warning C4049 in visual c++ ?

    #pragma warning( disable : 4904 )

    Mike
    www.exontrol.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links