Thread: VC+6: weird compiler error

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071

    VC+6: weird compiler error

    I wasn't sure where to put this one, so I put it here.

    I've gotten this weird error, from almost nowhere:
    Release/PsychoEngine.exe : warning LNK4084: total image size -388861952 exceeds max (268435456); image may not run
    I don't have any idea what it means, or why i'm getting it. please help if you can.

    thanx
    -psychopath
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    The executable that was produced is too big.
    I've never had this happen.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    Be carefull with resources. Probably to much of them

  4. #4
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    make sure you have sp5 (or maybe it's sp6) for msvc 6 installed also.
    PHP and XML
    Let's talk about SAX

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Code:
    int big[1000000] = { 0 };
    Stuff like this will take up a lot of space in your executable.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    >>Stuff like this will take up a lot of space in your executable.

    I'm confused....did he show you his code?
    PHP and XML
    Let's talk about SAX

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    No, I took a shot at guessing what his problem is.

    I suppose another example might be rampant template instantiation.

    Or simply a crappy compiler
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    >>Or simply a crappy compiler

    true.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM