I have a VS2013 project with a class in a separate file where I want to use the BeaEngine to disassemble a binary. I added all the necessary files (BeaEngine.h and BeaEngine.lib) to the project and set the linker to include the .lib. When I call the Disasm function from inside the main() function my project compiles just fine, but when I try to call it from inside one of the member functions of my class, I get the following error:
error LNK2019: Verweis auf nicht aufgelöstes externes Symbol
"__imp__Disasm" in Funktion
""private: void __thiscall BinaryBlob::callScan(unsigned int,unsigned int)"
(?callScan@BinaryBlob@@AAEXII@Z)"
So to me it looks like the linker cannot find the implementation for the Disasm function. If I comment the following line out it will compile without an error.
len = Disasm( &(this->disasm) );
My includes are like follows:
#include "stdafx.h"
#include "BinaryBlob.h"
#define BEA_ENGINE_STATIC /* specify the usage of a static version of BeaEngine */
#define BEA_USE_STDCALL /* specify the usage of a stdcall version of BeaEngine */
#include "BeaEngine.h"
Do I need to do something else besides including the BeaEngine.h?
Any help would be really appreciated!