delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/16/15:39:12

Message-Id: <199804161937.MAA26558@geocities.com>
Comments: Authenticated sender is <phile AT mail DOT geocities DOT com>
From: "Phile" <Phile AT geocities DOT com>
To: djgpp AT delorie DOT com
Date: Thu, 16 Apr 1998 15:34:49 +0600
MIME-Version: 1.0
Subject: Re: Permission Denied?

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019