使用 Windows 7 64 位和 lcc-win32
2个源文件:
Hello.c
HelloImpl.c
以下:
lcc -shadows -unused -v -IC:\lcc\include -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1.c
lcc -shadows -unused -v -IC:\lcc\include -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1Impl.c
lcclnk.exe -map %1.map -dll -o %1.dll %1.obj %1Impl.obj
生成 32 位 .dll
但是这个:
lcc64 -shadows -unused -v -IC:\lcc\include64 -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1.c
lcc64 -shadows -unused -v -IC:\lcc\include64 -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1Impl.c
lcclnk64.exe -map %1.map -dll -o %1.dll %1.obj %1Impl.obj
产生:
Entry point DllMain not found
Use the -entry command line option
在链接器命令和一个用零填充的 2K .dll 之后!
我究竟做错了什么 ?