This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STATUS_ACCESS_VIOLATION when running g++ (formerly without subject)


Apparently gcc will compile depending on your filename extension which
should be .cc or .cpp for C++.  I use

g++ -o foo.exe foo.cpp

This calls gcc with a few added parameters as I understand it.  Other than
that I can't imagine why it doesn't compile, unless your environmental
variables are incorrect and the compiler can't locate a needed file.

----------
> From: Capron, Craig W <craig.w.capron@lmco.com>
> To: 'Scott Warner' <swarnerx3@acadia.net>
> Cc: 'gnu-win32@cygnus.com'
> Subject: RE: STATUS_ACCESS_VIOLATION when running g++ (formerly without
subject)
> Date: Wednesday, November 19, 1997 8:26 AM
> 
> Hi Scott,
> 
> Thanks Scott, but the error repeats.  That is, it didn't change
> anything; I'm still getting the same error.
> 
> cwc
> 
> 	----------
> 	From: 	Scott Warner[SMTP:swarnerx3@acadia.net]
> 	Sent: 	Wednesday, November 19, 1997 4:05 AM
> 	To: 	Capron, Craig W; gun-win32@cygnus.com
> 	Subject: 	Re:
> 
> 	Craig,
> 
> 	try int main() to specify what return type
> 
> 	----------
> 	> From: Capron, Craig W <craig.w.capron@lmco.com>
> 	> To: 'gnu-win32@cygnus.com'
> 	> Subject: 
> 	> Date: Monday, November 17, 1997 12:38 PM
> 	> 
> 	> Greetings!  I am new to programming and newer to Cygnus
> software, so I
> 	> beg your sufferance.  I have recently installed Cygnus'
> gnu-win32, b18,
> 	> and everything seems to be working fine except the compiler.
> I've
> 	> written the following simple program named 'welcome.C':
> 	> 
> 	> 	// A first program in C++
> 	> 
> 	> 	#include <iostream.h>
> 	> 
> 	> 	main(){
> 	> 	  cout << "Welcome to C++!\n";
> 	> 
> 	> 	  // indicate that program ended successfully
> 	> 	  return 0;
> 	> 	}
> 	> 
> 	> . . . but when I ran g++ I received the following error
> message:
> 	> 
> 	> 	(unknown) heap_init: unable to allocate heap, win32
> error 87
> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]