我的oracle服务端在windwos2000平台下,
我写了一段proc程序——employee.pc
用 c:\>proc iname=employee MODE=ORACLE
后成功生成了employee.c文件。
请问再怎样处理才能生成可执行文件?
我的机器上有VC和Turbor C我用tc编译时总出现连接错误,如下:
Compiling E:\PROC\EMPLOYEE.C:
Linking D:\TURBOC2\EMPLOYEE.EXE:
Linker Error: Undefined symbol '__setargv' in module C0S
Linker Error: Undefined symbol '__setenvp' in module C0S
Linker Error: Undefined symbol '_sqlglm' in module EMPLOYEE.C
Linker Error: Undefined symbol '_sqlcxt' in module EMPLOYEE.C
Linker Error: Undefined symbol '__exitclean' in module EXIT请高手指教。
我写了一段proc程序——employee.pc
用 c:\>proc iname=employee MODE=ORACLE
后成功生成了employee.c文件。
请问再怎样处理才能生成可执行文件?
我的机器上有VC和Turbor C我用tc编译时总出现连接错误,如下:
Compiling E:\PROC\EMPLOYEE.C:
Linking D:\TURBOC2\EMPLOYEE.EXE:
Linker Error: Undefined symbol '__setargv' in module C0S
Linker Error: Undefined symbol '__setenvp' in module C0S
Linker Error: Undefined symbol '_sqlglm' in module EMPLOYEE.C
Linker Error: Undefined symbol '_sqlcxt' in module EMPLOYEE.C
Linker Error: Undefined symbol '__exitclean' in module EXIT请高手指教。
找到它,编译时加上就行了。
你还要一个oraSQL8.LIB
rem - Builds Progr. w. (Oracle9i) embedded SQL -\
rem ------------------------------------------------------------\
rem Usage: msmakes <prog_name>
proc iname=%1.pc
rem Compile and link the program.
rem ????? To build a C++ program, change the source file extension to
rem and include the -Tp option.
rem Include other libraries at the end of the link-command !
cl -Id:\Oracle\Ora90\oci\include -Id:\Oracle\Ora90\precomp\public -I. -I%MSVCDir%\include -D_MT -D_DLL -Zi %1.c /link d:\Oracle\Ora90\precomp\lib\msvc\oraSQL9.LIB /LIBPATH:%MSVCDir%\lib msvcrt.lib /nod:libc