#187 g++ size of generated executable !!!

Known_bugs
closed-invalid
MinGW (57)
2002-09-20
2002-09-20
No

#include <iostream>

int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}

g++ -o hello hello.cpp

hello.exe = 448537bytes !!!

i just install and compile, no modifications.

Discussion

  • Earnie Boyd

    Earnie Boyd - 2002-09-20
    • status: open --> closed-invalid
     
  • Earnie Boyd

    Earnie Boyd - 2002-09-20

    Logged In: YES
    user_id=15438

    This is not a bug, it's a feature.

    g++ -s -D__GTHREAD_HIDE_WIN32API -o hello hello.cpp

    Will reduce the size a bit, -s strips debugging symbols while -D__GTHREAD_HIDE_WIN32API is a hack in stdc++
    for Win32 thread handling. This will be set by default in later releases.

    Earnie.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks