2009/06/18

Cygwin - make header files

source file name : test.c
header file name : test.h

make o-file:
gcc -mno-cygwin -c test.c


---------- test.c ----------

#include <stdio.h>

int test-function( int age, int height, int weight){

printf("input your age : "); scanf("%d",&age);
printf("input your height : "); scanf("%d",&height);
printf("input your wight : "); scanf("%d",&wight);

printf("your data\n");
printf("age : %d\n",age);
printf("height : %d\n",height);
printf("wight : %d\n",wight);

return 0;

}

---------- test.h ----------

int test-function( int age, int height, int weight);

0 件のコメント:

コメントを投稿