compile error question
Jim M.
msg124@hotmail.com
Thu Oct 11 17:44:00 GMT 2001
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
More information about the Gcc-help
mailing list