一个问题,bcb编译不过,vc可以通过
unit1.c
#include "Unit2.h"
//---------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
ftemp=getFile(ftemp);
test();
return 0;
}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <Windows.h>
#ifndef Unit2H
#define Unit2H
static FILE * ftemp;
FILE* getFile(FILE * fileName);
int test();
#endif
#include "Unit2.h"
#pragma package(smart_init)
FILE* getFile(FILE * fileName){
fileName = fopen("s:/22.txt", "w");
return fileName;
}
int test(){
printf("test %d",ftemp);
return 0;
}