分页: 1 / 1

makefile 问题

发表于 : 2013-11-23 12:09
Anti-T
int main(int argc,char **argv)
{
mytool1_print("hello");
mytool2_print("hello");
}
/* mytool1.h */
#ifndef _MYTOOL_1_H
#define _MYTOOL_1_H
void mytool1_print(char *print_str);
#endif
/* mytool1.c */
#include "mytool1.h"
void mytool1_print(char *print_str)
{
printf("This is mytool1 print %s\n",print_str);
}
/* mytool2.h */
#ifndef _MYTOOL_2_H
#define _MYTOOL_2_H
void mytool2_print(char *print_str);
#endif
/* mytool2.c */
#include "mytool2.h"
void mytool2_print(char *print_str)
{
printf("This is mytool2 print %s\n",print_str);
}


:/$ gcc -c home/at/Desktop/mytool1.c
Assembler messages:
Fatal error: can't create mytool1.o: Permission denied

这是什么情况?

Re: makefile 问题

发表于 : 2013-11-26 21:12
lainme
Fatal error: can't create mytool1.o: Permission denied
你在哪个目录下编译?没有权限吧