to kimryo: 感谢你提供帮助,不过我打开Project Settings没有找到dynamic lib在什么地方设置 我使用的版本是Visual C++ 6.0 打开"Project Settings"看到General\Debug\C/C++\Library\Resources....等选项页
poor IDE...Or you need new a static lib project,and add the same source file...
昨天尝试将xxx.dsp中 # TARGTYPE "Win32 (x86) Static Library" 0x0104 修改成 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 结果编译的时候报"error LNK2001: unresolved external symbol _main" 打开选项"Link/Ignore all default libraries"编译后又报 "LNK1561: entry point must be defined" 入口函数必须定义?是怎么回是,怎么加呢? 下午结贴,,,,
create a static lib project,and add the same source file.
create a dynamic lib project,and add the same source file.
you didn;t understand me: [生成lib] 和 [dll的连接程序]不同hehe。the static lib uses lib.exe to generate a lib file and the dll uses link.exe to link to a PE file.
dynamic lib
感谢你提供帮助,不过我打开Project Settings没有找到dynamic lib在什么地方设置
我使用的版本是Visual C++ 6.0
打开"Project Settings"看到General\Debug\C/C++\Library\Resources....等选项页
===============================
no,static lib won't link.
# TARGTYPE "Win32 (x86) Static Library" 0x0104
修改成
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
结果编译的时候报"error LNK2001: unresolved external symbol _main"
打开选项"Link/Ignore all default libraries"编译后又报
"LNK1561: entry point must be defined"
入口函数必须定义?是怎么回是,怎么加呢?
下午结贴,,,,
[生成lib] 和 [dll的连接程序]不同hehe。the static lib uses lib.exe to generate a lib file
and the dll uses link.exe to link to a PE file.