Questions tagged «lnk2019»

11
如何解决错误LNK2019:无法解析的外部符号-功能?
我收到此错误,但是我不知道如何解决。 我使用的是Visual Studio2013。我将解决方案的名称命名为MyProjectTest, 这是我的测试解决方案的结构: - function.h #ifndef MY_FUNCTION_H #define MY_FUNCTION_H int multiple(int x, int y); #endif -function.cpp #include "function.h" int multiple(int x, int y){ return x*y; } - main.cpp中 #include <iostream> #include <cstdlib> #include "function.h" using namespace std; int main(){ int a, b; cin >> a >> b; cout << …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.