为什么编译出的结果不能执行
我从db2的sample/c下找了几个文件编译了下,结果能编译出sample.exe可是为什么执行的时候却报sample.exe不是有效的win32程序,不能看到想要的结果。
以下是编译的bat文件内容
cls
db2 connect to sample
db2 prep dbmcon1.sqc bindfile
db2 prep dbmcon2.sqc bindfile
db2 prep dbmcon.sqc bindfile
db2 prep utilemb.sqc bindfile
db2 binddbmcon1.bnd
db2 binddbmcon2.bnd
db2 binddbmcon.bnd
db2 bindutilemb.bnd
cl -Zi -Od -c -W2 -DWIN32 -I../c dbmcon1.c dbmcon2.c dbmcon.c utilemb.c
link -debug -out:sample.exe-dll utilemb.obj dbmcon1.objdbmcon2.obj
dbmcon.objdb2api.lib
del *.bnd *.c *.obj
页:
[1]