http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EGCS...doesn't work...



I'm using the GNU C compiler, and here's the code (simple, but I'm only
starting with C++, I usually code normal C):

#include <iostream.h>

void main() {
	cout << "hello world";
};

This is what I type to compile ($ resembles prompt):

$ cc hw.cpp
cc: installation problem, cannot exec 'cc1plus': No such file or
directory.

The following procedure with the same compiler, does however work (C, not
C++):

void main() {		/* compiler test */
	int x, y;
	printf("Enter two numbers, seperated by colons (end with .):");
	scanf("%d:%d.", &x, &y);
	/* let's divide them :-) */
	printf("%d / %d = %d; %d %% %d = %d\n\r",
	x, y, x / y, x, y, x % y);
	exit(0);
};

This code I compiled by typing:

$ cc compiler-test.c
$

It returned no output, meaning, obviously, that it compiled perfectly. I
ran the binary file produced, output was:

Enter two number, seperated by colons (end with .): 5, 3
5 / 3 = 1; 5 % 3 = 2;
$

Ok, I hope this is enough information.

Kind regards,

Lionel Pinkhard

On Thu, 8 Jun 2000, Jason Brunson wrote:

> If you don;t mind my asking, what compiler are you using and what does the
> source code look like.  Also, forgive me, but what is the error that you are
> receiving?  I am sorry that I had not followed this post better so that I
> would not have to ask these questions.
> 
> Thanks,
> Jason
> 
> ----- Original Message -----
> From: Lionel Pinkhard <lionelpi@mweb.co.za>
> To: <gameprogrammer@gameprogrammer.com>
> Sent: Thursday, June 08, 2000 1:41 PM
> Subject: EGCS...doesn't work...
> 
> 
> > Hi,
> >
> > I'm sorry, but it looks like I already have egcs (and egcs-c++) installed.
> > I tried to install them and it told me it's already installed, any other
> > ideas?
> >
> > Kind regards,
> >
> > Lionel Pinkhard
> >
> > =================================================================
> > The GameProgrammer.Com mailing list is for the open discussion
> > of any topic related to the art, science, and business of
> > programming games. This list is especially tolerant of beginners.
> > We were all beginners once
> >
> > To SUBSCRIBE or UNSUBSCRIBE please visit:
> > http://gameprogrammer.com/mailinglist.html
> 
> =================================================================
> The GameProgrammer.Com mailing list is for the open discussion
> of any topic related to the art, science, and business of
> programming games. This list is especially tolerant of beginners.
> We were all beginners once
> 
> To SUBSCRIBE or UNSUBSCRIBE please visit:
> http://gameprogrammer.com/mailinglist.html
> 

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html