Results 1 to 5 of 5

Thread: cc1plus.exe: out of memory allocating 65536 bytes

  1. #1
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default cc1plus.exe: out of memory allocating 65536 bytes

    hi there,

    I've got a Qt program which includes a big header file, which should make a
    20M executable. However, it fails with the above error. Is there a way let
    the compiler make big exes without falling over?

    thank you,

    DB

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cc1plus.exe: out of memory allocating 65536 bytes

    You can increase the size of your virtual memory in the system.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: cc1plus.exe: out of memory allocating 65536 bytes

    Thanks for this,

    I've got 2gig actual ram, had about 3gig virt on C:

    changed this to having 5gig on d:

    now I cant load the project in creator, keeps crashing.

    It seems strange that my resulting app will only be about 25meg,
    headerfiles only 130meg. Now I've got many times that in memory
    and virt mem.

    Is there anything in creator I can set? Is there any 'per application'
    settings for amount of memory they can use?

    I'm using a 2Gig Core2 Duo laptop. Windows XP Professional.

    Any help would be appreciated!

    thanks again

    DB

  4. #4
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: cc1plus.exe: out of memory allocating 65536 bytes

    Oh, another bit of info, might be relevant...

    I need to make static executables. So I compiled my own Qt toolchain.
    This works fine for applications upto about 10meg.

    DB

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cc1plus.exe: out of memory allocating 65536 bytes

    Creator has nothing to do with it. Your error is related to the compiler, not the IDE.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.