Discussion:
Error with C++ in Netbeans
kyhc87
2008-09-16 03:37:00 UTC
Permalink
C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\cc1.exe: *** Couldn't reserve
space for cygwin's heap (0x2430000) in child, cygheap, Win32 error 487
make[1]: *** [build/Debug/Cygwin-Windows/rtdbtest.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_3'
make: *** [.build-impl] Error 2

Build failed. Exit value 2.


this is the error i get when i compile the Welcome sample in Netbeans.

need help :(
--
View this message in context: http://www.nabble.com/Error-with-C%2B%2B-in-Netbeans-tp19504779p19504779.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Torgashov Stas
2008-09-16 11:43:50 UTC
Permalink
Hello,



Did you try to compile this project from the command line, without NetBeans IDE?

Using C:\cygwin\bin\gcc directly?
Post by kyhc87
C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\cc1.exe: *** Couldn't reserve
space for cygwin's heap (0x2430000) in child, cygheap, Win32 error 487
make[1]: *** [build/Debug/Cygwin-Windows/rtdbtest.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_3'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
this is the error i get when i compile the Welcome sample in Netbeans.
need help :(
--
View this message in context: http://www.nabble.com/Error-with-C%2B%2B-in-Netbeans-tp19504779p19504779.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
--
73! Crimson Cat aka Stas Torgashov
Gordon Prieur
2008-09-16 15:15:05 UTC
Permalink
Hi,

I suspect you've got too old a Cygwin distribution and thats the
problem. The gcc
release you're using (2.95.3) was released in March of 2001. At a
minimum, you
need to update your Cygwin distribution. If its too old, it might even
be better to
remove it completely and install Cygwin from scratch.

In any case, the C/C++ support in NetBeans doesn't support gcc 2.95.x or
other GNU software that old.

Gordon
Post by kyhc87
C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\cc1.exe: *** Couldn't reserve
space for cygwin's heap (0x2430000) in child, cygheap, Win32 error 487
make[1]: *** [build/Debug/Cygwin-Windows/rtdbtest.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_3'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
this is the error i get when i compile the Welcome sample in Netbeans.
need help :(
kyhc87
2008-09-17 01:32:18 UTC
Permalink
oh alright, im trying to install netbeans in the company's computer. this
computer only has installation of this version of cygwin.

anyways, thanks for the tip.
Post by kyhc87
C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\cc1.exe: *** Couldn't
reserve space for cygwin's heap (0x2430000) in child, cygheap, Win32 error
487
make[1]: *** [build/Debug/Cygwin-Windows/rtdbtest.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_3'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
this is the error i get when i compile the Welcome sample in Netbeans.
need help :(
--
View this message in context: http://www.nabble.com/Error-with-C%2B%2B-in-Netbeans-tp19504779p19523902.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
kyhc87
2008-09-17 08:11:23 UTC
Permalink
now i get an error like this

--------------------------------------------------------
Running "c:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and
Settings\Kenny\My Documents\NetBeansProjects\Application_4

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
mkdir -p
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Documents/NetBeansProjects/Application_4
g++.exe -c -g -IC\:/cygwin/usr/include -IC\:/cygwin/usr/include
-IC\:/cygwin/usr/include/g++-3 -o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Documents/NetBeansProjects/Application_4/main.o
C\:/Documents\ and\ Settings/Kenny/My\
Documents/NetBeansProjects/Application_4/main.cpp
mkdir -p dist/Debug/Cygwin-Windows
g++.exe -o dist/Debug/Cygwin-Windows/application_4
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Documents/NetBeansProjects/Application_4/main.o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Documents/NetBeansProjects/Application_4/main.o:
In function `main':
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`_cin'
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`istream::operator>>(int&)'
collect2: ld returned 1 exit status
make[1]: *** [dist/Debug/Cygwin-Windows/application_4.exe] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
make: *** [.build-impl] Error 2

Build failed. Exit value 2.
-------------------------------------------------------------------------------

i guess MingW is more friendly with netbeans?
--
View this message in context: http://www.nabble.com/Error-with-C%2B%2B-in-Netbeans-tp19504779p19527264.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Stas Torgashov
2008-09-17 20:03:23 UTC
Permalink
Hello,

For the first - could you, please, provide the source code of your
Application_4?
About MinGW. NetBeans IDE still has problems using 'make' utility from this
package, so I'd not suggest using MinGW right now. And I'm still guessing
with they fix MinGW support in NetBeans IDE.
Post by kyhc87
now i get an error like this
--------------------------------------------------------
Running "c:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents
and Settings\Kenny\My Documents\NetBeansProjects\Application_4
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
mkdir -p
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4 g++.exe -c -g -IC\:/cygwin/usr/include
-IC\:/cygwin/usr/include -IC\:/cygwin/usr/include/g++-3 -o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4/main.o C\:/Documents\ and\
Settings/Kenny/My\
Documents/NetBeansProjects/Application_4/main.cpp
mkdir -p dist/Debug/Cygwin-Windows
g++.exe -o dist/Debug/Cygwin-Windows/application_4
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4/main.o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`_cin'
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`istream::operator>>(int&)'
collect2: ld returned 1 exit status
make[1]: *** [dist/Debug/Cygwin-Windows/application_4.exe] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
---------------------------------------------------------------------------
----
i guess MingW is more friendly with netbeans?
--
73!
Stas Torgashov aka Crimson Cat
kyhc87
2008-09-18 01:28:17 UTC
Permalink
#include <iostream.h>

int main(void)
{
int input;
cin >> input;
return 0;

}

this is a code just to test out if it works.

im using mingw on netbeans on my laptop computer and ti works just fine.

on my laptop, the code is compiled using mingw and the output is displayed
on a cygwin console.
Post by Torgashov Stas
Hello,
For the first - could you, please, provide the source code of your
Application_4?
About MinGW. NetBeans IDE still has problems using 'make' utility from this
package, so I'd not suggest using MinGW right now. And I'm still guessing
with they fix MinGW support in NetBeans IDE.
Post by kyhc87
now i get an error like this
--------------------------------------------------------
Running "c:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents
and Settings\Kenny\My Documents\NetBeansProjects\Application_4
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
mkdir -p
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4 g++.exe -c -g -IC\:/cygwin/usr/include
-IC\:/cygwin/usr/include -IC\:/cygwin/usr/include/g++-3 -o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4/main.o C\:/Documents\ and\
Settings/Kenny/My\
Documents/NetBeansProjects/Application_4/main.cpp
mkdir -p dist/Debug/Cygwin-Windows
g++.exe -o dist/Debug/Cygwin-Windows/application_4
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
s/NetBeansProjects/Application_4/main.o
build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/Kenny/My_Document
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`_cin'
C:/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4/main.cpp:6: undefined reference to
`istream::operator>>(int&)'
collect2: ld returned 1 exit status
make[1]: *** [dist/Debug/Cygwin-Windows/application_4.exe] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Kenny/My
Documents/NetBeansProjects/Application_4'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
---------------------------------------------------------------------------
----
i guess MingW is more friendly with netbeans?
--
73!
Stas Torgashov aka Crimson Cat
--
View this message in context: http://www.nabble.com/Error-with-C%2B%2B-in-Netbeans-tp19504779p19544396.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Loading...