C++ error:LNK2005 已经在*.obj中定义

版权声明:本文为本人辛苦原创文章,如果需要转载,请注明出处,谢谢!!! https://blog.csdn.net/sihai12345/article/details/82745455

一、错误

LNK2005 “int __cdecl test01(void)” (?test01@@YAHXZ) 已经在 ShellExecuteTest.obj 中定义 Test E:\c++learning\workspace\python\Test\Test\Test.obj

二、解决方法

这个错误很简单,只是因为在一个c++项目中,定义了两个一样的方法导致的,只需要将这两个方法的其中一个改掉即可。

猜你喜欢

转载自blog.csdn.net/sihai12345/article/details/82745455
今日推荐