Mail Archives: djgpp/1998/04/16/15:39:12
> When I try to compile a simple program with gcc it tells me that my
> permission is denied. I know that this is because of the file that is
> included when I use the -include statement. It reads
> cpp.exe: c:\pfile\djgpp\include: Permission denied (EACCES)
Please post the shortest program which triggers this message when
compiled. Also, post the command line you use to compile that program.
It seems like your command or source are trying to force the preprocessor
to open and read c:\pfile\djgpp\include, which is a directory and
therefore cannot be read.
I use the command
gcc c:\pfile\c\wrtmore.c -include c:\pfile\djgpp\include
to compile the program
#include <stdio.h>
int main()
{
printf("This is a line of text to output.\n");
printf("And this is another ");
printf("line of text.\n\n");
printf("This is a third line.\n");
return 0;
}
This is just a simple prog that is supposed to teach c from some
tutorial.
Help
Phile
phile AT geocities DOT com
- Raw text -