编译出错! fatal error LNK1561: entry point must be defined

sanweiying 2003-05-08 11:27:40
使用ATL,支持mfc。组件内实现了两个接口,编译时出现上述错误。百思不得其解,请高手帮忙!
...全文
659 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
sanweiying 2003-05-09
  • 打赏
  • 举报
回复
就像lblyy76(yibo)所说,MSDN解释报LNK1561错有两种可能:
1、在“Project setting”中的C/C++ Preprocessor 的Additional Include Directories中包含的路径有类似“C:\Project\Inc\.”的情况,可是我的工程里没有在此增加任何路径;
2、在“Project setting”中的Link的Output中,没有定义entry-ponit symbol,可是加上DllEntryPoint,也没有用。
我这个工程,有时编译报两次这样的链接错误,到第三次又编译通过了。可是现在不知怎么回事,再也不能编译了,总是报这样的错误。郁闷哪
shooterlily 2003-05-08
  • 打赏
  • 举报
回复
按照帮助理解,你应该是include目录设得不对,
打开Tools\Options\Directories\include files,看其中有没有最后是\的,
有就去掉它
o_racle 2003-05-08
  • 打赏
  • 举报
回复
gz
lblyy76 2003-05-08
  • 打赏
  • 举报
回复
MSDN,搜索LNK1561,When you build an AppWizard-generated application that has a directory with a trailing backslash (\) specified in the Additional Include Directories field of the C/C++ Preprocessor settings, you receive this error:

The backslash (\) character is interpreted as an escape character
To work around this problem, do not include trailing backslashes in the Additional Include Directories field of the C/C++ Preprocessor settings. For example, specify directories as C:\Project\Inc rather than as C:\Project\Inc\. Or if you want to specify the current directory as .\, use just the period (.) instead.
zhoory 2003-05-08
  • 打赏
  • 举报
回复
gz...
joachern 2003-05-08
  • 打赏
  • 举报
回复
最好把问题拿出来,有点代码,这种问题解决难,搞不懂头绪

3,248

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧