I am using Intel compiler (11.1\\0.65)on 64-bit machine. While building a certain project, I receive the following error:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl recordingsimulation::AbsDataSource::MoveToNextFile(void)" (__imp_?MoveToNextFile@?$AbsDataSource@PEAX$0PPPPPPPP@@recordingsimulation@@QEAA_NXZ) referenced in function "private: void __cdecl MessageHandler::HandleACLInputError(void)" (?HandleACLInputError@MessageHandler@@AEAAXXZ)
When compiling in win32 it builds fine, but in the x64 configuration it fails. I switched to the visual c++compiler and the build succeeded. Most of the methods in the class are virtual, but the specific method it doesn't find isn't (MoveToNextFile). When I declared it as virtual the problem was solved and the build succeeded, but it shouldn't be virtual.
Do you have any idea why the Intel compiler doesn't "see" the symbol? Maybe I should turn on some flags? I don't want to leave the virtual as now.