这在Visual studio中编译得很好,但在XCode中为什么不行呢?
class A()
{};
someMethod(A& a);
someMethod(A()); //error: no matching function call in XCode only :(
这是不是很糟糕的形式?每次都要写以下代码似乎很烦人:
A a;
someMethod(a); //successful compile on Xcode
我是不是遗漏了什么?我没有太多的经验,所以谢谢你的帮助!
我有一个项目,我将所有的源文件都添加到其中。然后我单击了build,它显示:
fatal error C1083: Cannot open include file: 'common.h': No such file or directory 1> crc64_tablegen.c
这很烦人,因为common.h在我的项目中!就在那里!但我认为它可能在不同的目录中。这是原因吗?我是不是应该把所有东西都移到根目录,然后再添加它?谢谢!