public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* two things..........
@ 2004-02-04 21:16 Graham Walsh
  2004-02-05  8:46 ` Miguel Ram__rez J__vega
  2004-02-05 13:10 ` Eljay Love-Jensen
  0 siblings, 2 replies; 3+ messages in thread
From: Graham Walsh @ 2004-02-04 21:16 UTC (permalink / raw)
  To: gcc-help

Hi,

I have two issues;


1) link failure with "atexit" already defined, this is with gcc v3.2 for c++ 
in conjunction with the latest cygwin installation.


2) I think I need to update my gcc installation to overcome this first 
issue. I wonder if you can tell me where there are pre-built versions of the 
gcc c++ compiler so I can download and run on my friendly xp laptop. I don't 
want to go thru the pain of compiling the gcc source from scratch, hence the 
request for the pre-built compiler.


cheers much,


GrahamO

_________________________________________________________________
Check out the new MSN 9 Dial-up — fast & reliable Internet access with prime 
features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two things..........
  2004-02-04 21:16 two things Graham Walsh
@ 2004-02-05  8:46 ` Miguel Ram__rez J__vega
  2004-02-05 13:10 ` Eljay Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: Miguel Ram__rez J__vega @ 2004-02-05  8:46 UTC (permalink / raw)
  To: Graham Walsh; +Cc: gcc-help

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

On Wed, 04 Feb 2004 16:14:17 -0500
"Graham Walsh" <graham_walsh50@hotmail.com> wrote:

> Hi,
> 
> I have two issues;
> 
> 
> 1) link failure with "atexit" already defined, this is with gcc v3.2 for c++ 
> in conjunction with the latest cygwin installation.
> 
> 

Hi,

does your compiler report some warning like "implicit declaration of atexit()"? Try to import the atexit symbol from the std:: namespace:

#include <cstdlib>
#include <iostream>

using std::atexit;

void foo( void )
{
	std::cout << "Bye bye" << std::endl;
}

int main( int argc, char** argv )
{
	atexit( foo );

	return 0;
} 

This should work in any gcc v3 compiler.

Miguel.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two things..........
  2004-02-04 21:16 two things Graham Walsh
  2004-02-05  8:46 ` Miguel Ram__rez J__vega
@ 2004-02-05 13:10 ` Eljay Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: Eljay Love-Jensen @ 2004-02-05 13:10 UTC (permalink / raw)
  To: Graham Walsh, gcc-help

Hi Graham,

The pre-built version of GCC C++ compiler is downloadable through Cygwin's SETUP program.

It isn't selected by default, you'll have to make sure you click on "install" for the compiler.  (Or do what I do, and click "install" at the top level item and install pre-built EVERYTHING (sans source).)

HTH,
--Eljay


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-05 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-04 21:16 two things Graham Walsh
2004-02-05  8:46 ` Miguel Ram__rez J__vega
2004-02-05 13:10 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).