я упростил свой код:
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #include <windows.h>
#include <vector>
using namespace std;
struct smth{
};
void smthfun(vector<smth> h){
}
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hprevinst,LPSTR lpszargs,int nwinmode){
vector <smth> y;
smthfun(y);
} |
|
ошибка:
error LNK2019: ссылка на неразрешенный внешний символ __imp___CrtDbgReportW в функции "public: struct smth const & __thiscall std::_Vector_const_iterator<class std::_Vector_val<struct smth,class std::allocator<struct smth> > >::operator*(void)const " (??D?$_Vector_const_iterator@V?$_Vector_val@Usmth@@V?$allocator@Usmth@@@std@@@std@@@std@@QBEABUsmth@@XZ)
перемена инклюдов роли не сыграла.