makefile 问题

内核编译和嵌入式产品的设计与开发
回复
Anti-T
帖子: 1
注册时间: 2013-11-18 22:01
系统: ubuntu 12.04/Win XP

makefile 问题

#1

帖子 Anti-T » 2013-11-23 12:09

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

这是什么情况?
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: makefile 问题

#2

帖子 lainme » 2013-11-26 21:12

Fatal error: can't create mytool1.o: Permission denied
你在哪个目录下编译?没有权限吧
回复