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
这是什么情况?
makefile 问题
-
- 帖子: 1
- 注册时间: 2013-11-18 22:01
- 系统: ubuntu 12.04/Win XP
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: makefile 问题
你在哪个目录下编译?没有权限吧Fatal error: can't create mytool1.o: Permission denied