最近写了个程序,DOS下的,需要转换成COM文件,用的是EXE2COM,但是总是失败。
例程:
编译器MSVC1.5
编译指令:
c:/>cl demo.cpp
编译成功得到文件 demo.exe
转换:
c:/>exe2com demo.exe
报错:
exe2com 1.00 by Chris Dunford/The Cove Software Group
exe2com: EXE has relocatable items, can't convert
例程:
/* 文件demo.cpp */
#include <stdio.h>
int main(int argc, char **argv)
{
printf("%d", 100);
return 0;
}
编译指令:
c:/>cl demo.cpp
编译成功得到文件 demo.exe
转换:
c:/>exe2com demo.exe
报错:
exe2com 1.00 by Chris Dunford/The Cove Software Group
exe2com: EXE has relocatable items, can't convert