views:

159

answers:

1

I have some useful typedefs on a header file called utypes.h. I have decided to use make and haven't found a way to compile it since then.

When I execute gcc -Wall -c utypes.h to generate the .o object of utypes I get the following error:

"utypes.h:1 fatal error: can't create precomiled header types.h.gch: Permission Denied (EACESS)
Compilation terminated.

What am I doing wrong here? Thanks.

A: 

You don't have write access to the directory where you are trying to put types.h.gch, or you have a pre-existing read-only copy. On Linux you can use strace to get the details.

bmargulies
I am not using linux. What do you suggest me to do? Don't use make?
nunos
I suggest you edit your question to make your environment clear, and hope that someone wanders along who has seen this before. Is it cygwin or Ming?
bmargulies