delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/20/13:47:35

From: swarnerx3 AT acadia DOT net (Scott Warner)
Subject: Re: STATUS_ACCESS_VIOLATION when running g++ (formerly without subject)
20 Nov 1997 13:47:35 -0800 :
Message-ID: <199711200211.VAA11229.cygnus.gnu-win32@p2.acadia.net>
Mime-Version: 1.0
To: "Capron, Craig W" <craig DOT w DOT capron AT lmco DOT com>, <gnu-win32 AT cygnus DOT com>

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 DOT w DOT capron AT lmco DOT com>
> To: 'Scott Warner' <swarnerx3 AT acadia DOT net>
> Cc: 'gnu-win32 AT cygnus DOT 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 AT acadia DOT net]
> 	Sent: 	Wednesday, November 19, 1997 4:05 AM
> 	To: 	Capron, Craig W; gun-win32 AT cygnus DOT com
> 	Subject: 	Re:
> 
> 	Craig,
> 
> 	try int main() to specify what return type
> 
> 	----------
> 	> From: Capron, Craig W <craig DOT w DOT capron AT lmco DOT com>
> 	> To: 'gnu-win32 AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019