Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Cygwin Fucking Up with C++

Name: Anonymous 2007-10-17 18:09

I'm trying to get some experience with using a command prompt to compile C++ programs. I got Cygwin installed with everything, so I try to compile a .cpp with g++. For purposes of this thread, i'll use a Hello World program.

I do
$ g++ main.cpp -o HelloWorld

And I get this shit:
      3 [main] ? 1452 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (1452): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x3600
00, State 0x10000

      3 [main] ? 1456 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (1456): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x3600
00, State 0x10000

      3 [main] ? 3944 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (3944): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x3600
00, State 0x10000

      3 [main] ? 548 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (548): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x36000
0, State 0x10000

      2 [main] ? 2704 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (2704): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x3600
00, State 0x10000

      3 [main] ? 3964 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\cc1plus.exe (3964): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x3600
00, State 0x10000

What the fuck, /prog/? I tried doing this stuff on another computer (at work) and everything ran just fine. But if I try to do this on my home laptop here, it fucks up. What's going on, and how do I fix it?

Name: Anonymous 2007-10-17 18:12

1. You're using Windows.
2. You're using Cygwin.
3. You're using C++.

Name: Anonymous 2007-10-17 18:13

>>2
OH SHI-

Name: Anonymous 2007-10-17 18:17

>>1
A quick google of that error says to re-install cygwin and try again. If that doesn't work, try googling around yourself.

Name: Anonymous 2007-10-17 18:24

>>4
I've googled the error and the only sort of results I get are shitty e-mail posts from people who have the same issue but there is never any clear, understandable response or resolution given.

And I started trying this a couple days ago, so naturally I decided to reinstall cygwin. I did, and I'm still getting the problem.

Name: Anonymous 2007-10-17 20:02

>>5
If i remember correctly a re installation of cygwin does not overwrite the configuration files.

Name: Anonymous 2007-10-17 20:39

Don't call your main source file main.cpp.

Name: Anonymous 2007-10-17 20:41

>>7
Is this what they teach at expert programmer school?

Name: Anonymous 2007-10-17 20:43

>>6
No, but deleting the whole cygwin directory (it has no real uninstall) and installing again from scratch is what I did. Still no luck.

Name: Anonymous 2007-10-17 21:04

>>9
Try installing a different Cygwin release, and fiddle with the installation settings.

Or, you know, just install FreeBSD and call it a day.

Name: Anonymous 2007-10-18 7:18

>>10
I have the exact same cygwin release installed on my computer at work. I'm not doing anything differently. Everything works peachy there.

Name: Anonymous 2009-03-06 13:41

Programming BY INTERFACING DIRECTLY WITH HARDWARE WITH!

Name: Anonymous 2010-12-25 22:37

Name: Anonymous 2011-02-03 1:11

Don't change these.
Name: Email:
Entire Thread Thread List