【发布时间】:2010-05-08 09:53:10
【问题描述】:
我刚刚在学校完成了一项强制性任务,我即将完成它。
但后来我遇到了一些不熟悉的东西,头文件。 :(
我有什么:
test-program.c
task_header.h
function1.s
function2.s
function3.s
function4.s
测试程序.c:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "task_header.h"
.
..
...
task_header.h:
extern void function1(...);
extern void function2(...);
extern int function3(...);
extern void function4(...);
然后我使用命令:
gcc -m32 -o runtest test-program.c function1.s function2.s function3.s function4.s
这是一种正确的方法,还是可以修改它?所以我可以输入:
gcc -m32 -o runtest test-program.c
?
【问题讨论】:
标签: c assembly header-files