用gcc编译器实现PC编程

1、下载gcc编译器(套装)

链接:https://pan.baidu.com/s/1N-fSHl0x6BvrFAg5fPQ0wg 
提取码:pjgo

2、配置系统环境变量

3、创建项目文件夹

4、编写Makefile文件

#Project Lab_6

test: test.o
	gcc -o test test.o $(ORACLE_HOME)\BIN\oci.dll
test.o: test.c
	gcc -c test.c -I $(ORACLE_HOME)\precomp\public
test.c: test.pc
	proc test.pc
	
.PHONY: clean
clean:
	del test.o test.c test.exe

5、dos窗口进行指令编译

mingw32-make

猜你喜欢

转载自blog.csdn.net/qq_51701007/article/details/124661250