This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

compile error question


I try this with "gcc myfile.c -o myfile" i get the iostream.h not found. If 
i do "gcc myfile.C -o myfile" i get the "storage size of
'cube' is not known. ..redefinition of 'char *cube[]"..
thanks,
J

#include <iostream.h>
char *cube[];
int main() {
	int i;
	while (0) {
		i = 0;
		while (cube[i]){
			cout << cube[i++];
		}
	}
}

char* cube[] = {"\n\
    ____\n\
   /   /|\n\
  /___/ |\n\
  |   | /\n\
  |___|/\n",

"\
  ___\n\
|   |\n\
|___|\n\
|   |\n\
|___|\n",

"\
____    \n\
|\\   \\  \n\
| \\___\\ \n\
\\ |   |  \n\
\\|___|  \n",

"\
   /\\  \n\
  /  \\ \n\
|\  /| \n\
| \/ | \n\
\\ | / \n\
  \\|/  \n",

NULL
};

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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