c++ - LNK2001 : unresolved external symbol _MyClass. cpp

标签 c++ visual-studio-2008 visual-c++

在我的解决方案中编译项目时,我收到了之前的错误。 MyClass 在我试图编译的项目中(包含在项目中设置为 true),所以我不确定它是如何成为“外部符号”的。有谁知道如何解决这个问题?

更新:我认为这绝对是 Microsoft 的问题,因为如果我将配置类型从 .exe 更改为 .dll,它可以正常工作

最佳答案

当我应该将它留空时,我将入口点设置为 MyClass.cpp

关于c++ - LNK2001 : unresolved external symbol _MyClass. cpp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5062758/

相关文章:

c++ - 如何在 C++ 控制台中删除一个已经写入的字符

c++ - C++ 队列中的 pop 和访问是线程安全的

c# - 视频文件下载问题

windows - 如何在 x64 VC++ 编译器上禁用 FPO 优化

c++ - 在 .Net C++ 中将 EventHandler 转换为 MouseEventHandler?

c++ - CONCEPT_REQUIRES_ ranges-v3 中的实现

c++ - 获取 C++ 输出流中元素的大小

c++ - fatal error C1083 : Cannot open compiler intermediate file: '***.pch' : No such file or directory

c# - 多个arraylist重复subjectname顺序显示

windows - 如果我调用 GlobalLock(),然后未能调用 GlobalUnlock(),会发生什么情况?