I have built the LLVM 3.4 from source using Cmake. I referred to documentation for Getting Started with the LLVM System using Microsoft Visual Studio for the installation.
I now want to use the LLVM in my own project. I have added the LLVM libraries in VS 2012 using the Properties -> C/C++ -> General. When I try to build my compiler, I get the following linker errors when I Build my project:
1>main.obj : error LNK2019: unresolved external symbol LLVMInitializeX86TargetInfo referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ)
1>main.obj : error LNK2019: unresolved external symbol LLVMInitializeX86Target referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ)
1>main.obj : error LNK2019: unresolved external symbol LLVMInitializeX86TargetMC referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ)
I am new to LLVM, any help would be appreciated. I have gone through the solutions #Failed to link obj files generated by LLVM compiler using MS Linker and also # Clang, Microsoft linker and standard library but they did not improve my situation.
Some information about my system:
Windows 8 (x64 arch)
no Cygwin installed
latest winflexbison in use
A more detailed error list from my failed build in VS 2012:
Error 3 error LNK2001: unresolved external symbol "protected: virtual void __cdecl llvm::Value::printCustom(class llvm::raw_ostream &)const " (?printCustom#Value#llvm##MEBAXAEAVraw_ostream#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 4 error LNK2001: unresolved external symbol "protected: virtual void __cdecl llvm::Value::printCustom(class llvm::raw_ostream &)const " (?printCustom#Value#llvm##MEBAXAEAVraw_ostream#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 5 error LNK2019: unresolved external symbol "public: void __cdecl llvm::Value::setName(class llvm::Twine const &)" (?setName#Value#llvm##QEAAXAEBVTwine#2##Z) referenced in function "public: virtual class llvm::Value * __cdecl NFunctionDeclaration::codeGen(class CodeGenContext &)" (?codeGen#NFunctionDeclaration##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 6 error LNK2001: unresolved external symbol "public: void __cdecl llvm::Value::setName(class llvm::Twine const &)" (?setName#Value#llvm##QEAAXAEBVTwine#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 7 error LNK2019: unresolved external symbol "void __cdecl llvm::llvm_unreachable_internal(char const *,char const *,unsigned int)" (?llvm_unreachable_internal#llvm##YAXPEBD0I#Z) referenced in function "public: static void __cdecl llvm::User::operator delete(void *,unsigned int)" (??3User#llvm##SAXPEAXI#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 8 error LNK2001: unresolved external symbol "void __cdecl llvm::llvm_unreachable_internal(char const *,char const *,unsigned int)" (?llvm_unreachable_internal#llvm##YAXPEBD0I#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 9 error LNK2001: unresolved external symbol "private: virtual void __cdecl llvm::User::anchor(void)" (?anchor#User#llvm##EEAAXXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 10 error LNK2001: unresolved external symbol "private: virtual void __cdecl llvm::User::anchor(void)" (?anchor#User#llvm##EEAAXXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 11 error LNK2019: unresolved external symbol "protected: static void * __cdecl llvm::User::operator new(unsigned __int64,unsigned int)" (??2User#llvm##KAPEAX_KI#Z) referenced in function "public: static void * __cdecl llvm::StoreInst::operator new(unsigned __int64)" (??2StoreInst#llvm##SAPEAX_K#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 12 error LNK2001: unresolved external symbol "protected: static void * __cdecl llvm::User::operator new(unsigned __int64,unsigned int)" (??2User#llvm##KAPEAX_KI#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 13 error LNK2019: unresolved external symbol "public: static void __cdecl llvm::User::operator delete(void *)" (??3User#llvm##SAXPEAX#Z) referenced in function "int `public: virtual class llvm::Value * __cdecl NIdentifier::codeGen(class CodeGenContext &)'::`1'::dtor$2" (?dtor$2#?0??codeGen#NIdentifier##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z#4HA) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 14 error LNK2001: unresolved external symbol "public: static void __cdecl llvm::User::operator delete(void *)" (??3User#llvm##SAXPEAX#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 15 error LNK2019: unresolved external symbol "public: virtual __cdecl llvm::Instruction::~Instruction(void)" (??1Instruction#llvm##UEAA#XZ) referenced in function "int `private: __cdecl llvm::CallInst::CallInst(class CallInst::Value *,class CallInst::ArrayRef<class llvm::Value *>,class CallInst::Twine const &,class CallInst::BasicBlock *)'::`1'::dtor$0" (?dtor$0#?0???0CallInst#llvm##AEAA#PEAVValue#1#V?$ArrayRef#PEAVValue#llvm###1#AEBVTwine#1#PEAVBasicBlock#1##Z#4HA) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 16 error LNK2001: unresolved external symbol "public: virtual __cdecl llvm::Instruction::~Instruction(void)" (??1Instruction#llvm##UEAA#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 17 error LNK2019: unresolved external symbol "protected: __cdecl llvm::Instruction::Instruction(class llvm::Type *,unsigned int,class llvm::Use *,unsigned int,class llvm::BasicBlock *)" (??0Instruction#llvm##IEAA#PEAVType#1#IPEAVUse#1#IPEAVBasicBlock#1##Z) referenced in function "private: __cdecl llvm::CallInst::CallInst(class llvm::Value *,class llvm::ArrayRef<class llvm::Value *>,class llvm::Twine const &,class llvm::BasicBlock *)" (??0CallInst#llvm##AEAA#PEAVValue#1#V?$ArrayRef#PEAVValue#llvm###1#AEBVTwine#1#PEAVBasicBlock#1##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 18 error LNK2001: unresolved external symbol "protected: __cdecl llvm::Instruction::Instruction(class llvm::Type *,unsigned int,class llvm::Use *,unsigned int,class llvm::BasicBlock *)" (??0Instruction#llvm##IEAA#PEAVType#1#IPEAVUse#1#IPEAVBasicBlock#1##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 19 error LNK2019: unresolved external symbol "private: __cdecl llvm::BasicBlock::BasicBlock(class llvm::LLVMContext &,class llvm::Twine const &,class llvm::Function *,class llvm::BasicBlock *)" (??0BasicBlock#llvm##AEAA#AEAVLLVMContext#1#AEBVTwine#1#PEAVFunction#1#PEAV01##Z) referenced in function "public: static class llvm::BasicBlock * __cdecl llvm::BasicBlock::Create(class llvm::LLVMContext &,class llvm::Twine const &,class llvm::Function *,class llvm::BasicBlock *)" (?Create#BasicBlock#llvm##SAPEAV12#AEAVLLVMContext#2#AEBVTwine#2#PEAVFunction#2#PEAV12##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 20 error LNK2001: unresolved external symbol "private: __cdecl llvm::BasicBlock::BasicBlock(class llvm::LLVMContext &,class llvm::Twine const &,class llvm::Function *,class llvm::BasicBlock *)" (??0BasicBlock#llvm##AEAA#AEAVLLVMContext#1#AEBVTwine#1#PEAVFunction#1#PEAV01##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 21 error LNK2019: unresolved external symbol "private: void __cdecl llvm::APInt::initSlowCase(class llvm::APInt const &)" (?initSlowCase#APInt#llvm##AEAAXAEBV12##Z) referenced in function "public: __cdecl llvm::APInt::APInt(class llvm::APInt const &)" (??0APInt#llvm##QEAA#AEBV01##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 22 error LNK2019: unresolved external symbol "public: static class llvm::Type * __cdecl llvm::Type::getVoidTy(class llvm::LLVMContext &)" (?getVoidTy#Type#llvm##SAPEAV12#AEAVLLVMContext#2##Z) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 23 error LNK2001: unresolved external symbol "public: static class llvm::Type * __cdecl llvm::Type::getVoidTy(class llvm::LLVMContext &)" (?getVoidTy#Type#llvm##SAPEAV12#AEAVLLVMContext#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 24 error LNK2019: unresolved external symbol "public: static class llvm::Type * __cdecl llvm::Type::getDoubleTy(class llvm::LLVMContext &)" (?getDoubleTy#Type#llvm##SAPEAV12#AEAVLLVMContext#2##Z) referenced in function "public: virtual class llvm::Value * __cdecl NDouble::codeGen(class CodeGenContext &)" (?codeGen#NDouble##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 25 error LNK2019: unresolved external symbol "public: static class llvm::IntegerType * __cdecl llvm::Type::getInt64Ty(class llvm::LLVMContext &)" (?getInt64Ty#Type#llvm##SAPEAVIntegerType#2#AEAVLLVMContext#2##Z) referenced in function "public: virtual class llvm::Value * __cdecl NInteger::codeGen(class CodeGenContext &)" (?codeGen#NInteger##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 26 error LNK2001: unresolved external symbol "public: static class llvm::IntegerType * __cdecl llvm::Type::getInt64Ty(class llvm::LLVMContext &)" (?getInt64Ty#Type#llvm##SAPEAVIntegerType#2#AEAVLLVMContext#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 27 error LNK2019: unresolved external symbol "public: static class llvm::FunctionType * __cdecl llvm::FunctionType::get(class llvm::Type *,class llvm::ArrayRef<class llvm::Type *>,bool)" (?get#FunctionType#llvm##SAPEAV12#PEAVType#2#V?$ArrayRef#PEAVType#llvm###2#_N#Z) referenced in function "public: virtual class llvm::Value * __cdecl NFunctionDeclaration::codeGen(class CodeGenContext &)" (?codeGen#NFunctionDeclaration##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 28 error LNK2001: unresolved external symbol "public: static class llvm::FunctionType * __cdecl llvm::FunctionType::get(class llvm::Type *,class llvm::ArrayRef<class llvm::Type *>,bool)" (?get#FunctionType#llvm##SAPEAV12#PEAVType#2#V?$ArrayRef#PEAVType#llvm###2#_N#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 29 error LNK2019: unresolved external symbol "private: void __cdecl llvm::Function::BuildLazyArguments(void)const " (?BuildLazyArguments#Function#llvm##AEBAXXZ) referenced in function "private: void __cdecl llvm::Function::CheckLazyArguments(void)const " (?CheckLazyArguments#Function#llvm##AEBAXXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 30 error LNK2001: unresolved external symbol "private: void __cdecl llvm::Function::BuildLazyArguments(void)const " (?BuildLazyArguments#Function#llvm##AEBAXXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 31 error LNK2019: unresolved external symbol "private: __cdecl llvm::Function::Function(class llvm::FunctionType *,enum llvm::GlobalValue::LinkageTypes,class llvm::Twine const &,class llvm::Module *)" (??0Function#llvm##AEAA#PEAVFunctionType#1#W4LinkageTypes#GlobalValue#1#AEBVTwine#1#PEAVModule#1##Z) referenced in function "public: static class llvm::Function * __cdecl llvm::Function::Create(class llvm::FunctionType *,enum llvm::GlobalValue::LinkageTypes,class llvm::Twine const &,class llvm::Module *)" (?Create#Function#llvm##SAPEAV12#PEAVFunctionType#2#W4LinkageTypes#GlobalValue#2#AEBVTwine#2#PEAVModule#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 32 error LNK2001: unresolved external symbol "private: __cdecl llvm::Function::Function(class llvm::FunctionType *,enum llvm::GlobalValue::LinkageTypes,class llvm::Twine const &,class llvm::Module *)" (??0Function#llvm##AEAA#PEAVFunctionType#1#W4LinkageTypes#GlobalValue#1#AEBVTwine#1#PEAVModule#1##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 33 error LNK2019: unresolved external symbol "public: class llvm::Function * __cdecl llvm::Module::getFunction(class llvm::StringRef)const " (?getFunction#Module#llvm##QEBAPEAVFunction#2#VStringRef#2##Z) referenced in function "public: virtual class llvm::Value * __cdecl NMethodCall::codeGen(class CodeGenContext &)" (?codeGen#NMethodCall##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 34 error LNK2019: unresolved external symbol "class llvm::LLVMContext & __cdecl llvm::getGlobalContext(void)" (?getGlobalContext#llvm##YAAEAVLLVMContext#1#XZ) referenced in function "public: virtual class llvm::Value * __cdecl NInteger::codeGen(class CodeGenContext &)" (?codeGen#NInteger##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 35 error LNK2001: unresolved external symbol "class llvm::LLVMContext & __cdecl llvm::getGlobalContext(void)" (?getGlobalContext#llvm##YAAEAVLLVMContext#1#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 36 error LNK2001: unresolved external symbol "class llvm::LLVMContext & __cdecl llvm::getGlobalContext(void)" (?getGlobalContext#llvm##YAAEAVLLVMContext#1#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Error 37 error LNK2019: unresolved external symbol "public: __cdecl llvm::legacy::PassManager::PassManager(void)" (??0PassManager#legacy#llvm##QEAA#XZ) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 38 error LNK2019: unresolved external symbol "public: virtual __cdecl llvm::legacy::PassManager::~PassManager(void)" (??1PassManager#legacy#llvm##UEAA#XZ) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 39 error LNK2019: unresolved external symbol "public: virtual void __cdecl llvm::legacy::PassManager::add(class llvm::Pass *)" (?add#PassManager#legacy#llvm##UEAAXPEAVPass#3##Z) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 40 error LNK2019: unresolved external symbol "public: bool __cdecl llvm::legacy::PassManager::run(class llvm::Module &)" (?run#PassManager#legacy#llvm##QEAA_NAEAVModule#3##Z) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 41 error LNK2019: unresolved external symbol "public: static class llvm::BinaryOperator * __cdecl llvm::BinaryOperator::Create(enum llvm::Instruction::BinaryOps,class llvm::Value *,class llvm::Value *,class llvm::Twine const &,class llvm::BasicBlock *)" (?Create#BinaryOperator#llvm##SAPEAV12#W4BinaryOps#Instruction#2#PEAVValue#2#1AEBVTwine#2#PEAVBasicBlock#2##Z) referenced in function "public: virtual class llvm::Value * __cdecl NBinaryOperator::codeGen(class CodeGenContext &)" (?codeGen#NBinaryOperator##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 42 error LNK2019: unresolved external symbol "public: __cdecl llvm::AllocaInst::AllocaInst(class llvm::Type *,class llvm::Twine const &,class llvm::BasicBlock *)" (??0AllocaInst#llvm##QEAA#PEAVType#1#AEBVTwine#1#PEAVBasicBlock#1##Z) referenced in function "public: virtual class llvm::Value * __cdecl NVariableDeclaration::codeGen(class CodeGenContext &)" (?codeGen#NVariableDeclaration##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 43 error LNK2019: unresolved external symbol "public: __cdecl llvm::LoadInst::LoadInst(class llvm::Value *,char const *,bool,class llvm::BasicBlock *)" (??0LoadInst#llvm##QEAA#PEAVValue#1#PEBD_NPEAVBasicBlock#1##Z) referenced in function "public: virtual class llvm::Value * __cdecl NIdentifier::codeGen(class CodeGenContext &)" (?codeGen#NIdentifier##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 44 error LNK2019: unresolved external symbol "public: __cdecl llvm::StoreInst::StoreInst(class llvm::Value *,class llvm::Value *,bool,class llvm::BasicBlock *)" (??0StoreInst#llvm##QEAA#PEAVValue#1#0_NPEAVBasicBlock#1##Z) referenced in function "public: virtual class llvm::Value * __cdecl NAssignment::codeGen(class CodeGenContext &)" (?codeGen#NAssignment##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 45 error LNK2019: unresolved external symbol "private: void __cdecl llvm::CallInst::init(class llvm::Value *,class llvm::ArrayRef<class llvm::Value *>,class llvm::Twine const &)" (?init#CallInst#llvm##AEAAXPEAVValue#2#V?$ArrayRef#PEAVValue#llvm###2#AEBVTwine#2##Z) referenced in function "private: __cdecl llvm::CallInst::CallInst(class llvm::Value *,class llvm::ArrayRef<class llvm::Value *>,class llvm::Twine const &,class llvm::BasicBlock *)" (??0CallInst#llvm##AEAA#PEAVValue#1#V?$ArrayRef#PEAVValue#llvm###1#AEBVTwine#1#PEAVBasicBlock#1##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 46 error LNK2001: unresolved external symbol "private: void __cdecl llvm::CallInst::init(class llvm::Value *,class llvm::ArrayRef<class llvm::Value *>,class llvm::Twine const &)" (?init#CallInst#llvm##AEAAXPEAVValue#2#V?$ArrayRef#PEAVValue#llvm###2#AEBVTwine#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 47 error LNK2001: unresolved external symbol "protected: virtual class llvm::CallInst * __cdecl llvm::CallInst::clone_impl(void)const " (?clone_impl#CallInst#llvm##MEBAPEAV12#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 48 error LNK2001: unresolved external symbol "protected: virtual class llvm::CallInst * __cdecl llvm::CallInst::clone_impl(void)const " (?clone_impl#CallInst#llvm##MEBAPEAV12#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 49 error LNK2019: unresolved external symbol "public: virtual __cdecl llvm::CallInst::~CallInst(void)" (??1CallInst#llvm##UEAA#XZ) referenced in function "public: virtual void * __cdecl llvm::CallInst::`scalar deleting destructor'(unsigned int)" (??_GCallInst#llvm##UEAAPEAXI#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 50 error LNK2001: unresolved external symbol "public: virtual __cdecl llvm::CallInst::~CallInst(void)" (??1CallInst#llvm##UEAA#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 51 error LNK2019: unresolved external symbol "private: __cdecl llvm::ReturnInst::ReturnInst(class llvm::LLVMContext &,class llvm::Value *,class llvm::BasicBlock *)" (??0ReturnInst#llvm##AEAA#AEAVLLVMContext#1#PEAVValue#1#PEAVBasicBlock#1##Z) referenced in function "public: static class llvm::ReturnInst * __cdecl llvm::ReturnInst::Create(class llvm::LLVMContext &,class llvm::Value *,class llvm::BasicBlock *)" (?Create#ReturnInst#llvm##SAPEAV12#AEAVLLVMContext#2#PEAVValue#2#PEAVBasicBlock#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 52 error LNK2019: unresolved external symbol "private: __cdecl llvm::ReturnInst::ReturnInst(class llvm::LLVMContext &,class llvm::BasicBlock *)" (??0ReturnInst#llvm##AEAA#AEAVLLVMContext#1#PEAVBasicBlock#1##Z) referenced in function "public: static class llvm::ReturnInst * __cdecl llvm::ReturnInst::Create(class llvm::LLVMContext &,class llvm::BasicBlock *)" (?Create#ReturnInst#llvm##SAPEAV12#AEAVLLVMContext#2#PEAVBasicBlock#2##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 53 error LNK2001: unresolved external symbol "private: __cdecl llvm::ReturnInst::ReturnInst(class llvm::LLVMContext &,class llvm::BasicBlock *)" (??0ReturnInst#llvm##AEAA#AEAVLLVMContext#1#PEAVBasicBlock#1##Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 54 error LNK2019: unresolved external symbol "class llvm::ModulePass * __cdecl llvm::createPrintModulePass(class llvm::raw_ostream *,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?createPrintModulePass#llvm##YAPEAVModulePass#1#PEAVraw_ostream#1#_NAEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 55 error LNK2019: unresolved external symbol LLVMLinkInJIT referenced in function "public: __cdecl `anonymous namespace'::ForceJITLinking::ForceJITLinking(void)" (??0ForceJITLinking#?A0x58e120ca##QEAA#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 56 error LNK2001: unresolved external symbol LLVMLinkInJIT E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 57 error LNK2001: unresolved external symbol LLVMLinkInJIT E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Error 58 error LNK2019: unresolved external symbol "public: class llvm::TargetMachine * __cdecl llvm::EngineBuilder::selectTarget(void)" (?selectTarget#EngineBuilder#llvm##QEAAPEAVTargetMachine#2#XZ) referenced in function "public: class llvm::ExecutionEngine * __cdecl llvm::EngineBuilder::create(void)" (?create#EngineBuilder#llvm##QEAAPEAVExecutionEngine#2#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 59 error LNK2019: unresolved external symbol "public: class llvm::ExecutionEngine * __cdecl llvm::EngineBuilder::create(class llvm::TargetMachine *)" (?create#EngineBuilder#llvm##QEAAPEAVExecutionEngine#2#PEAVTargetMachine#2##Z) referenced in function "public: class llvm::ExecutionEngine * __cdecl llvm::EngineBuilder::create(void)" (?create#EngineBuilder#llvm##QEAAPEAVExecutionEngine#2#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 60 error LNK2019: unresolved external symbol "class llvm::raw_ostream & __cdecl llvm::outs(void)" (?outs#llvm##YAAEAVraw_ostream#1#XZ) referenced in function "public: void __cdecl CodeGenContext::generateCode(class NBlock &)" (?generateCode#CodeGenContext##QEAAXAEAVNBlock###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 61 error LNK2019: unresolved external symbol "public: static class llvm::ConstantInt * __cdecl llvm::ConstantInt::get(class llvm::IntegerType *,unsigned __int64,bool)" (?get#ConstantInt#llvm##SAPEAV12#PEAVIntegerType#2#_K_N#Z) referenced in function "public: virtual class llvm::Value * __cdecl NInteger::codeGen(class CodeGenContext &)" (?codeGen#NInteger##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 62 error LNK2019: unresolved external symbol "public: static class llvm::Constant * __cdecl llvm::ConstantFP::get(class llvm::Type *,double)" (?get#ConstantFP#llvm##SAPEAVConstant#2#PEAVType#2#N#Z) referenced in function "public: virtual class llvm::Value * __cdecl NDouble::codeGen(class CodeGenContext &)" (?codeGen#NDouble##UEAAPEAVValue#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\codegen.obj
Error 63 error LNK2019: unresolved external symbol "public: static class llvm::Constant * __cdecl llvm::Constant::getNullValue(class llvm::Type *)" (?getNullValue#Constant#llvm##SAPEAV12#PEAVType#2##Z) referenced in function "void __cdecl createEchoFunction(class CodeGenContext &,class llvm::Function *)" (?createEchoFunction##YAXAEAVCodeGenContext##PEAVFunction#llvm###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 64 error LNK2019: unresolved external symbol "public: static class llvm::IntegerType * __cdecl llvm::Type::getInt32Ty(class llvm::LLVMContext &)" (?getInt32Ty#Type#llvm##SAPEAVIntegerType#2#AEAVLLVMContext#2##Z) referenced in function "class llvm::Function * __cdecl createPrintfFunction(class CodeGenContext &)" (?createPrintfFunction##YAPEAVFunction#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 65 error LNK2019: unresolved external symbol "public: static class llvm::PointerType * __cdecl llvm::Type::getInt8PtrTy(class llvm::LLVMContext &,unsigned int)" (?getInt8PtrTy#Type#llvm##SAPEAVPointerType#2#AEAVLLVMContext#2#I#Z) referenced in function "class llvm::Function * __cdecl createPrintfFunction(class CodeGenContext &)" (?createPrintfFunction##YAPEAVFunction#llvm##AEAVCodeGenContext###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 66 error LNK2019: unresolved external symbol "public: static class llvm::IntegerType * __cdecl llvm::IntegerType::get(class llvm::LLVMContext &,unsigned int)" (?get#IntegerType#llvm##SAPEAV12#AEAVLLVMContext#2#I#Z) referenced in function "void __cdecl createEchoFunction(class CodeGenContext &,class llvm::Function *)" (?createEchoFunction##YAXAEAVCodeGenContext##PEAVFunction#llvm###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 67 error LNK2019: unresolved external symbol "public: static class llvm::ArrayType * __cdecl llvm::ArrayType::get(class llvm::Type *,unsigned __int64)" (?get#ArrayType#llvm##SAPEAV12#PEAVType#2#_K#Z) referenced in function "void __cdecl createEchoFunction(class CodeGenContext &,class llvm::Function *)" (?createEchoFunction##YAXAEAVCodeGenContext##PEAVFunction#llvm###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 68 error LNK2019: unresolved external symbol "public: __cdecl llvm::GlobalVariable::GlobalVariable(class llvm::Module &,class llvm::Type *,bool,enum llvm::GlobalValue::LinkageTypes,class llvm::Constant *,class llvm::Twine const &,class llvm::GlobalVariable *,enum llvm::GlobalVariable::ThreadLocalMode,unsigned int,bool)" (??0GlobalVariable#llvm##QEAA#AEAVModule#1#PEAVType#1#_NW4LinkageTypes#GlobalValue#1#PEAVConstant#1#AEBVTwine#1#PEAV01#W4ThreadLocalMode#01#I2#Z) referenced in function "void __cdecl createEchoFunction(class CodeGenContext &,class llvm::Function *)" (?createEchoFunction##YAXAEAVCodeGenContext##PEAVFunction#llvm###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 69 error LNK2019: unresolved external symbol "public: static class llvm::Constant * __cdecl llvm::ConstantDataArray::getString(class llvm::LLVMContext &,class llvm::StringRef,bool)" (?getString#ConstantDataArray#llvm##SAPEAVConstant#2#AEAVLLVMContext#2#VStringRef#2#_N#Z) referenced in function "void __cdecl createEchoFunction(class CodeGenContext &,class llvm::Function *)" (?createEchoFunction##YAXAEAVCodeGenContext##PEAVFunction#llvm###Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 70 error LNK2019: unresolved external symbol "public: static class llvm::Constant * __cdecl llvm::ConstantExpr::getGetElementPtr(class llvm::Constant *,class llvm::ArrayRef<class llvm::Value *>,bool)" (?getGetElementPtr#ConstantExpr#llvm##SAPEAVConstant#2#PEAV32#V?$ArrayRef#PEAVValue#llvm###2#_N#Z) referenced in function "public: static class llvm::Constant * __cdecl llvm::ConstantExpr::getGetElementPtr(class llvm::Constant *,class llvm::ArrayRef<class llvm::Constant *>,bool)" (?getGetElementPtr#ConstantExpr#llvm##SAPEAVConstant#2#PEAV32#V?$ArrayRef#PEAVConstant#llvm###2#_N#Z) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\corefn.obj
Error 71 error LNK2019: unresolved external symbol "public: __cdecl llvm::Module::Module(class llvm::StringRef,class llvm::LLVMContext &)" (??0Module#llvm##QEAA#VStringRef#1#AEAVLLVMContext#1##Z) referenced in function "public: __cdecl CodeGenContext::CodeGenContext(void)" (??0CodeGenContext##QEAA#XZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Error 72 error LNK2019: unresolved external symbol LLVMInitializeX86TargetInfo referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Error 73 error LNK2019: unresolved external symbol LLVMInitializeX86Target referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Error 74 error LNK2019: unresolved external symbol LLVMInitializeX86TargetMC referenced in function "bool __cdecl llvm::InitializeNativeTarget(void)" (?InitializeNativeTarget#llvm##YA_NXZ) E:\Visual Studio\BlueInfrastructureBuild\Infrastructure\main.obj
Related
I complied c++ grpc file using protoc compiler, so i assume that that references should not give any problem.
I added "grpc\include" , "grpc\src" and "grpc\third_party\protobuf\src\google\protobuf" as include directory.
Interestingly, i'm getting :
error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (??0LogMessage#internal#protobuf#google##QAE#W4LogLevel#23#PBDH#Z) referenced in function "int __cdecl google::
error LNK2001: unresolved external symbol "public: virtual bool __thiscall google::protobuf::io::ZeroCopyOutputStream::WriteAliasedRaw(void const *,int)" (?WriteAliasedRaw#ZeroCopyOutputStream#io#protobuf#google##UAE_NPBXH#Z)
error LNK2019: unresolved external symbol "public: bool __thiscall google::protobuf::MessageLite::ParseFromZeroCopyStream(class google::protobuf::io::ZeroCopyInputStream *)" (?ParseFromZeroCopyStream#MessageLite#protobuf#google##QAE_NPAVZeroCopyInputStream#io#23##Z) referenced in function "class grpc::Status __cdecl grpc::GenericDeserialize<class grpc::ProtoBufferReader,class facialpluginpoc::NoParams>(class grpc::ByteBuffer *,class google::protobuf::MessageLite *)" (??$GenericDeserialize#VProtoBufferReader#grpc##VNoParams#facialpluginpoc###grpc##YA?AVStatus#0#PAVByteBuffer#0#PAVMessageLite#protobuf#google###Z)
error LNK2001: unresolved external symbol "class grpc::CoreCodegenInterface * grpc::g_core_codegen_interface" (?g_core_codegen_interface#grpc##3PAVCoreCodegenInterface#1#A)
error LNK2001: unresolved external symbol "class grpc::GrpcLibraryInterface * grpc::g_glip" (?g_glip#grpc##3PAVGrpcLibraryInterface#1#A)
error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::VerifyVersion(int,int,char const *)" (?VerifyVersion#internal#protobuf#google##YAXHHPBD#Z) referenced in function "void __cdecl InitDefaultsscc_info_NoParams_facialpluginpoc_2eproto(void)" (?InitDefaultsscc_info_NoParams_facialpluginpoc_2eproto##YAXXZ)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::OnShutdownRun(void (__cdecl*)(void const *),void const *)" (?OnShutdownRun#internal#protobuf#google##YAXP6AXPBX#Z0#Z) referenced in function "void __cdecl google::protobuf::internal::OnShutdownDestroyMessage(void const *)" (?OnShutdownDestroyMessage#internal#protobuf#google##YAXPBX#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "private: __int64 __thiscall google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int)" (?ReadVarint32Fallback#CodedInputStream#io#protobuf#google##AAE_JI#Z) referenced in function "public: bool __thiscall google::protobuf::io::CodedInputStream::ReadVarint32(unsigned int *)" (?ReadVarint32#CodedInputStream#io#protobuf#google##QAE_NPAI#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "private: unsigned int __thiscall google::protobuf::io::CodedInputStream::ReadTagFallback(unsigned int)" (?ReadTagFallback#CodedInputStream#io#protobuf#google##AAEII#Z) referenced in function "public: struct std::pair<unsigned int,bool> __thiscall google::protobuf::io::CodedInputStream::ReadTagWithCutoffNoLastTag(unsigned int)" (?ReadTagWithCutoffNoLastTag#CodedInputStream#io#protobuf#google##QAE?AU?$pair#I_N#std##I#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *)" (?WriteStringWithSizeToArray#CodedOutputStream#io#protobuf#google##SAPAEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAE#Z) referenced in function "public: static unsigned char * __cdecl google::protobuf::internal::WireFormatLite::WriteBytesToArray(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *)" (?WriteBytesToArray#WireFormatLite#internal#protobuf#google##SAPAEHABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAE#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "public: void * __thiscall google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned int)" (?AllocateAligned#ArenaImpl#internal#protobuf#google##QAEPAXI#Z) referenced in function "private: void * __thiscall google::protobuf::Arena::AllocateInternal<struct google::protobuf::internal::InternalMetadataWithArenaBase<class google::protobuf::UnknownFieldSet,class google::protobuf::internal::InternalMetadataWithArena>::Container>(bool)" (??$AllocateInternal#UContainer#?$InternalMetadataWithArenaBase#VUnknownFieldSet#protobuf#google##VInternalMetadataWithArena#internal#23##internal#protobuf#google###Arena#protobuf#google##AAEPAX_N#Z)
error LNK2019: unresolved external symbol "public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadBytes(class google::protobuf::io::CodedInputStream *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?ReadBytes#WireFormatLite#internal#protobuf#google##SA_NPAVCodedInputStream#io#34#PAV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) referenced in function "public: virtual bool __thiscall facialpluginpoc::Result::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Result#facialpluginpoc##UAE_NPAVCodedInputStream#io#protobuf#google###Z)
I have included all the required header files as project dependency, but still facing this issue.
Is this GRPC library/build/environment issue ? How to resolve this ?
C++ has two stages compiling and linking. From the errors in the post, looks like your includes are good which is not giving any compiler error but all are linker errors. During linking phase, it may be missing "google::protobuf::io" library or lib files.
I am new to Qt, I created a GUI application in Qt and everything was fine, until I changed the Build directory from Projects section in QtCreator. Now I get many linker errors which I am clueless on how to resolve them.
I tried reverting back to the previous build folder, but it failed again. I do clean the project and do a rebuild each time, yet nothing works. Here is a list of those linker errors I'm getting:
11:50:08: Running steps for project Ann_network...
11:50:08: Configuration unchanged, skipping qmake step.
11:50:08: Starting: "L:\Qt\Qt5.5.0\Tools\QtCreator\bin\jom.exe"
L:\Qt\Qt5.5.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:debug\Ann_network.exe #C:\Users\Master\AppData\Local\Temp\Ann_network.exe.7864.15.jom
mainwindow.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setRange(double,double)" (?setRange#QCPAxis##QEAAXNN#Z) referenced in function "private: void __cdecl MainWindow::Init(void)" (?Init#MainWindow##AEAAXXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setLabel(class QString const &)" (?setLabel#QCPAxis##QEAAXAEBVQString###Z) referenced in function "private: void __cdecl MainWindow::Init(void)" (?Init#MainWindow##AEAAXXZ)
moc_qcustomplot.obj : error LNK2001: unresolved external symbol "public: void __cdecl QCPAxis::setLabel(class QString const &)" (?setLabel#QCPAxis##QEAAXAEBVQString###Z)
mainwindow.obj : error LNK2019: unresolved external symbol "public: __cdecl QCustomPlot::QCustomPlot(class QWidget *)" (??0QCustomPlot##QEAA#PEAVQWidget###Z) referenced in function "public: void __cdecl Ui_MainWindow::setupUi(class QMainWindow *)" (?setupUi#Ui_MainWindow##QEAAXPEAVQMainWindow###Z)
mainwindow.obj : error LNK2019: unresolved external symbol "public: class QCPGraph * __cdecl QCustomPlot::graph(int)const " (?graph#QCustomPlot##QEBAPEAVQCPGraph##H#Z) referenced in function "private: void __cdecl MainWindow::XORNet(bool)" (?XORNet#MainWindow##AEAAX_N#Z)
mainwindow.obj : error LNK2019: unresolved external symbol "public: class QCPGraph * __cdecl QCustomPlot::addGraph(class QCPAxis *,class QCPAxis *)" (?addGraph#QCustomPlot##QEAAPEAVQCPGraph##PEAVQCPAxis##0#Z) referenced in function "private: void __cdecl MainWindow::Init(void)" (?Init#MainWindow##AEAAXXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCustomPlot::replot(enum QCustomPlot::RefreshPriority)" (?replot#QCustomPlot##QEAAXW4RefreshPriority#1##Z) referenced in function "private: void __cdecl MainWindow::XORNet(bool)" (?XORNet#MainWindow##AEAAX_N#Z)
moc_qcustomplot.obj : error LNK2001: unresolved external symbol "public: void __cdecl QCustomPlot::replot(enum QCustomPlot::RefreshPriority)" (?replot#QCustomPlot##QEAAXW4RefreshPriority#1##Z)
mainwindow.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGraph::setData(class QVector<double> const &,class QVector<double> const &)" (?setData#QCPGraph##QEAAXAEBV?$QVector#N##0#Z) referenced in function "private: void __cdecl MainWindow::XORNet(bool)" (?XORNet#MainWindow##AEAAX_N#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayer::setVisible(bool)" (?setVisible#QCPLayer##QEAAX_N#Z) referenced in function "private: static void __cdecl QCPLayer::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall#QCPLayer##CAXPEAVQObject##W4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayerable::setVisible(bool)" (?setVisible#QCPLayerable##QEAAX_N#Z) referenced in function "private: static void __cdecl QCPLayerable::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall#QCPLayerable##CAXPEAVQObject##W4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: bool __cdecl QCPLayerable::setLayer(class QCPLayer *)" (?setLayer#QCPLayerable##QEAA_NPEAVQCPLayer###Z) referenced in function "private: static void __cdecl QCPLayerable::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall#QCPLayerable##CAXPEAVQObject##W4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayerable::setAntialiased(bool)" (?setAntialiased#QCPLayerable##QEAAX_N#Z) referenced in function "private: static void __cdecl QCPLayerable::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall#QCPLayerable##CAXPEAVQObject##W4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutElement::setOuterRect(class QRect const &)" (?setOuterRect#QCPLayoutElement##QEAAXAEBVQRect###Z) referenced in function "public: virtual int __cdecl QCPLayoutElement::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutElement##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutElement::setMargins(class QMargins const &)" (?setMargins#QCPLayoutElement##QEAAXAEBVQMargins###Z) referenced in function "public: virtual int __cdecl QCPLayoutElement::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutElement##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutElement::setMinimumMargins(class QMargins const &)" (?setMinimumMargins#QCPLayoutElement##QEAAXAEBVQMargins###Z) referenced in function "public: virtual int __cdecl QCPLayoutElement::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutElement##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutElement::setMinimumSize(class QSize const &)" (?setMinimumSize#QCPLayoutElement##QEAAXAEBVQSize###Z) referenced in function "public: virtual int __cdecl QCPLayoutElement::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutElement##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutElement::setMaximumSize(class QSize const &)" (?setMaximumSize#QCPLayoutElement##QEAAXAEBVQSize###Z) referenced in function "public: virtual int __cdecl QCPLayoutElement::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutElement##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPLayoutGrid::rowCount(void)const " (?rowCount#QCPLayoutGrid##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPLayoutGrid::columnCount(void)const " (?columnCount#QCPLayoutGrid##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutGrid::setColumnStretchFactors(class QList<double> const &)" (?setColumnStretchFactors#QCPLayoutGrid##QEAAXAEBV?$QList#N###Z) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutGrid::setRowStretchFactors(class QList<double> const &)" (?setRowStretchFactors#QCPLayoutGrid##QEAAXAEBV?$QList#N###Z) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutGrid::setColumnSpacing(int)" (?setColumnSpacing#QCPLayoutGrid##QEAAXH#Z) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPLayoutGrid::setRowSpacing(int)" (?setRowSpacing#QCPLayoutGrid##QEAAXH#Z) referenced in function "public: virtual int __cdecl QCPLayoutGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPLayoutGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setSubGridVisible(bool)" (?setSubGridVisible#QCPGrid##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setAntialiasedSubGrid(bool)" (?setAntialiasedSubGrid#QCPGrid##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setAntialiasedZeroLine(bool)" (?setAntialiasedZeroLine#QCPGrid##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setPen(class QPen const &)" (?setPen#QCPGrid##QEAAXAEBVQPen###Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setSubGridPen(class QPen const &)" (?setSubGridPen#QCPGrid##QEAAXAEBVQPen###Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPGrid::setZeroLinePen(class QPen const &)" (?setZeroLinePen#QCPGrid##QEAAXAEBVQPen###Z) referenced in function "public: virtual int __cdecl QCPGrid::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPGrid##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::tickLabelPadding(void)const " (?tickLabelPadding#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: double __cdecl QCPAxis::tickLabelRotation(void)const " (?tickLabelRotation#QCPAxis##QEBANXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: enum QCPAxis::LabelSide __cdecl QCPAxis::tickLabelSide(void)const " (?tickLabelSide#QCPAxis##QEBA?AW4LabelSide#1#XZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: class QString __cdecl QCPAxis::numberFormat(void)const " (?numberFormat#QCPAxis##QEBA?AVQString##XZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::tickLengthIn(void)const " (?tickLengthIn#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::tickLengthOut(void)const " (?tickLengthOut#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::subTickLengthIn(void)const " (?subTickLengthIn#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::subTickLengthOut(void)const " (?subTickLengthOut#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::labelPadding(void)const " (?labelPadding#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: int __cdecl QCPAxis::offset(void)const " (?offset#QCPAxis##QEBAHXZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: class QCPLineEnding __cdecl QCPAxis::lowerEnding(void)const " (?lowerEnding#QCPAxis##QEBA?AVQCPLineEnding##XZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: class QCPLineEnding __cdecl QCPAxis::upperEnding(void)const " (?upperEnding#QCPAxis##QEBA?AVQCPLineEnding##XZ) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setScaleType(enum QCPAxis::ScaleType)" (?setScaleType#QCPAxis##QEAAXW4ScaleType#1##Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setScaleLogBase(double)" (?setScaleLogBase#QCPAxis##QEAAXN#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setRange(class QCPRange const &)" (?setRange#QCPAxis##QEAAXAEBVQCPRange###Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setRangeReversed(bool)" (?setRangeReversed#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setAutoTicks(bool)" (?setAutoTicks#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setAutoTickCount(int)" (?setAutoTickCount#QCPAxis##QEAAXH#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setAutoTickLabels(bool)" (?setAutoTickLabels#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setAutoTickStep(bool)" (?setAutoTickStep#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setAutoSubTicks(bool)" (?setAutoSubTicks#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setTicks(bool)" (?setTicks#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setTickLabels(bool)" (?setTickLabels#QCPAxis##QEAAX_N#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setTickLabelPadding(int)" (?setTickLabelPadding#QCPAxis##QEAAXH#Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAxis##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAxis::setTickLabelType(enum QCPAxis::LabelType)" (?setTickLabelType#QCPAxis##QEAAXW4LabelType#1##Z) referenced in function "public: virtual int __cdecl QCPAxis::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QCPAbstractPlottable##UEAAHW4Call#QMetaObject##HPEAPEAX#Z)
moc_qcustomplot.obj : error LNK2019: unresolved external symbol "public: void __cdecl QCPAbstractPlottable::setValueAxis(class QCPAxis *)" (?setValueAxis#QCPAbstractPlottable##QEAAXPEAVQCPAxis###Z) referenced in
\Ann_network\bin\Makefile [debug] Error 2
11:50:09: The process "L:\Qt\Qt5.5.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project Ann_network (kit: Desktop Qt 5.5.0 MSVC2013 64bit)
When executing step "Make"
11:50:09: Elapsed time: 00:01.
Note :
this is how my .pro file looks like :
#-------------------------------------------------
#
# Project created by QtCreator 2015-09-18T10:56:00
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
TARGET = Ann_network
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
qcustomplot.cpp \
../../ArtificialNeuralNetworksProject/Layer.cpp \
../../ArtificialNeuralNetworksProject/Matrix.cpp \
../../ArtificialNeuralNetworksProject/Network.cpp \
../../ArtificialNeuralNetworksProject/Neuron.cpp
HEADERS += mainwindow.h \
../../ArtificialNeuralNetworksProject/Layer.h \
../../ArtificialNeuralNetworksProject/Matrix.h \
../../ArtificialNeuralNetworksProject/Network.h \
../../ArtificialNeuralNetworksProject/Neuron.h \
qcustomplot.h
FORMS += mainwindow.ui
How can I find out what the cause is. ?
I found a way to get rid of this nerve-racking problem.
First try running qmake, if it didn't help, just delete the .pro.user file which resides next to your .pro file. After that try to open your project, Just press reconfigure and you are good to go.
In case you got QMake error (qmake is missing or something like that) run qmake first, then you are good to go.
I'm writing a C++ program using Chilkat library. I've linked the whole library to the project as follows:
project > properties > C/C++ > General > Additional Include Directories > C:\chilkat\include (That's where I have the library)
AND
project > properties > Linker > Input > Additional Dependencies > ... C:\chilkat\libs\ChilkatDbgDll.lib; ...
Chilkat library came with 4 kinds of .lib files, each for different kinds of runtime, so I used the .lib which best suited my project (Multi-Threaded Debug DLL).
The damn thing still gives me this:
1>------ Build started: Project: botnet, Configuration: Debug Win32 ------
1>Build started 28.08.2013 20:47:29.
1>InitializeBuildStatus:
1> Touching "Debug\botnet.unsuccessfulbuild".
1>ClCompile:
1> botnet.cpp
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__getsockopt#20 referenced in function "public: void __thiscall ChilkatSocket::logSocketOptions(class LogBase &)" (?logSocketOptions#ChilkatSocket##QAEXAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__setsockopt#20 referenced in function "private: void __thiscall ChilkatSocket::checkSetBufSizes(class LogBase &)" (?checkSetBufSizes#ChilkatSocket##AAEXAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__accept#12 referenced in function "private: bool __thiscall ChilkatSocket::acceptNextConnection2(class ChilkatSocket &,bool,unsigned int,class LogBase &,bool &)" (?acceptNextConnection2#ChilkatSocket##AAE_NAAV1#_NIAAVLogBase##AA_N#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket#12 referenced in function "public: void __thiscall ChilkatSocket::setNonBlocking(void)" (?setNonBlocking#ChilkatSocket##QAEXXZ)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError#0 referenced in function "private: bool __thiscall ChilkatSocket::createSocket_ipv4(class LogBase &,bool)" (?createSocket_ipv4#ChilkatSocket##AAE_NAAVLogBase##_N#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__socket#12 referenced in function "private: bool __thiscall ChilkatSocket::createSocket_ipv4(class LogBase &,bool)" (?createSocket_ipv4#ChilkatSocket##AAE_NAAVLogBase##_N#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup#8 referenced in function "bool __cdecl startupWSA(class LogBase &)" (?startupWSA##YA_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__ntohs#4 referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" (?ck_getsockname_ipv4#ChilkatSocket##AAE_NAAVStringBuffer#chilkat##AAHAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__inet_ntoa#4 referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" (?ck_getsockname_ipv4#ChilkatSocket##AAE_NAAVStringBuffer#chilkat##AAHAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__getsockname#12 referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" (?ck_getsockname_ipv4#ChilkatSocket##AAE_NAAVStringBuffer#chilkat##AAHAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname#4 referenced in function "struct hostent * __cdecl ck_gethostbyname(char const *,class LogBase &)" (?ck_gethostbyname##YAPAUhostent##PBDAAVLogBase###Z)
1>ChilkatDbgDll.lib(HostnameResolve.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname#4
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__getpeername#12 referenced in function "public: bool __thiscall ChilkatSocket::GetPeerName(class chilkat::StringBuffer &,int &)" (?GetPeerName#ChilkatSocket##QAE_NAAVStringBuffer#chilkat##AAH#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__inet_addr#4 referenced in function "public: static bool __cdecl ChilkatSocket::isDottedIpAddress(char const *)" (?isDottedIpAddress#ChilkatSocket##SA_NPBD#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__htons#4 referenced in function "public: static bool __cdecl ChilkatSocket::isDottedIpAddress(char const *)" (?isDottedIpAddress#ChilkatSocket##SA_NPBD#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__connect#12 referenced in function "private: bool __thiscall ChilkatSocket::connectSocket2_ipv4(char const *,int,unsigned int,class LogBase &,class ProgressMonitor *,bool &)" (?connectSocket2_ipv4#ChilkatSocket##AAE_NPBDHIAAVLogBase##PAVProgressMonitor##AA_N#Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__select#20 referenced in function "public: bool __thiscall ChilkatSocket::waitWriteable2(unsigned int,class LogBase &)" (?waitWriteable2#ChilkatSocket##QAE_NIAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet#8 referenced in function "public: bool __thiscall ChilkatSocket::waitWriteableMs2(unsigned int,bool,class SocketParams &,class LogBase &)" (?waitWriteableMs2#ChilkatSocket##QAE_NI_NAAVSocketParams##AAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__bind#12 referenced in function "private: bool __thiscall ChilkatSocket::bindSysCall2(void *,int,class LogBase &)" (?bindSysCall2#ChilkatSocket##AAE_NPAXHAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__listen#8 referenced in function "public: bool __thiscall ChilkatSocket::listenOnPort(int &,int,bool,class LogBase &)" (?listenOnPort#ChilkatSocket##QAE_NAAHH_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__gethostname#8 referenced in function "private: static bool __cdecl ChilkatSocket::getLocalHostName_inner(class chilkat::StringBuffer &,class LogBase &)" (?getLocalHostName_inner#ChilkatSocket##CA_NAAVStringBuffer#chilkat##AAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__closesocket#4 referenced in function "public: bool __thiscall ChilkatSocket::NewSocketAndListen(bool,class LogBase &)" (?NewSocketAndListen#ChilkatSocket##QAE_N_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__shutdown#8 referenced in function "public: bool __thiscall ChilkatSocket::NewSocketAndListen(bool,class LogBase &)" (?NewSocketAndListen#ChilkatSocket##QAE_N_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__recv#16 referenced in function "public: bool __thiscall ChilkatSocket::IsConnected(class LogBase &)" (?IsConnected#ChilkatSocket##QAE_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol __imp__send#16 referenced in function "public: bool __thiscall ChilkatSocket::SendBytes2(unsigned char const *,unsigned int,unsigned int,unsigned int,class LogBase &,class SocketParams &)" (?SendBytes2#ChilkatSocket##QAE_NPBEIIIAAVLogBase##AAVSocketParams###Z)
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertVerifyRevocation#28 referenced in function "public: int __thiscall MsCertificate::checkRevoked(class LogBase &)" (?checkRevoked#MsCertificate##QAEHAAVLogBase###Z)
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertFreeCertificateContext#4 referenced in function "public: void __thiscall MsCertificate::dotNetDispose(void)" (?dotNetDispose#MsCertificate##QAEXXZ)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol __imp__CertFreeCertificateContext#4
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol __imp__CertFreeCertificateContext#4
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertNameToStrW#20 referenced in function "void __cdecl _getCertNameStr(struct _CRYPTOAPI_BLOB *,unsigned long,class XString &)" (?_getCertNameStr##YAXPAU_CRYPTOAPI_BLOB##KAAVXString###Z)
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertDuplicateCertificateContext#4 referenced in function "public: __thiscall MsCertificate::MsCertificate(struct _CERT_CONTEXT const *,bool,class LogBase &)" (??0MsCertificate##QAE#PBU_CERT_CONTEXT##_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol __imp__CertDuplicateCertificateContext#4
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertSetCertificateContextProperty#16 referenced in function "public: bool __thiscall MsCertificate::linkPrivateKey(class XString &,bool,bool,class LogBase &)" (?linkPrivateKey#MsCertificate##QAE_NAAVXString##_N1AAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol __imp__CertSetCertificateContextProperty#16
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CryptDecodeObject#28 referenced in function "public: static void __cdecl MsCertificate::getRfc822NameFromContext(struct _CERT_CONTEXT const *,class XString &)" (?getRfc822NameFromContext#MsCertificate##SAXPBU_CERT_CONTEXT##AAVXString###Z)
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertGetIntendedKeyUsage#16 referenced in function "public: unsigned int __thiscall MsCertificate::getIntendedKeyUsage(void)" (?getIntendedKeyUsage#MsCertificate##QAEIXZ)
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertGetCertificateContextProperty#16 referenced in function "private: bool __thiscall MsCertificate::getKeyProviderInfo(int,class LogBase &)" (?getKeyProviderInfo#MsCertificate##AAE_NHAAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol __imp__CertGetCertificateContextProperty#16
1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol __imp__CertCreateCertificateContext#12 referenced in function "public: static class MsCertificate * __cdecl MsCertificate::createFromDer(unsigned char const *,unsigned int,class LogBase &)" (?createFromDer#MsCertificate##SAPAV1#PBEIAAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertDuplicateStore#4 referenced in function "public: class CertificateStore * __thiscall CertificateStore::dupStore(class LogBase *)" (?dupStore#CertificateStore##QAEPAV1#PAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertEnumCertificatesInStore#8 referenced in function "private: void __thiscall CertificateStore::deleteKeyContainers(void)" (?deleteKeyContainers#CertificateStore##AAEXXZ)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertCloseStore#8 referenced in function "public: void __thiscall CertificateStore::dotNetDispose(void)" (?dotNetDispose#CertificateStore##QAEXXZ)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol __imp__CertCloseStore#8
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertOpenStore#20 referenced in function "public: static class CertificateStore * __cdecl CertificateStore::createMemoryStore(class LogBase *)" (?createMemoryStore#CertificateStore##SAPAV1#PAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol __imp__CertOpenStore#20
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertFindCertificateInStore#24 referenced in function "public: class MsCertificate * __thiscall CertificateStore::findIssuer(class MsCertificate &,class LogBase &,bool)" (?findIssuer#CertificateStore##QAEPAVMsCertificate##AAV2#AAVLogBase##_N#Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertAddEncodedCertificateToStore#24 referenced in function "public: bool __thiscall CertificateStore::addEncodedCertificateUtf8(char const *,class LogBase &)" (?addEncodedCertificateUtf8#CertificateStore##QAE_NPBDAAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertAddCertificateContextToStore#16 referenced in function "public: bool __thiscall CertificateStore::addCertWithPrivateKey(class MsCertificate &,class XString &,bool,class LogBase &,bool)" (?addCertWithPrivateKey#CertificateStore##QAE_NAAVMsCertificate##AAVXString##_NAAVLogBase##2#Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertSaveStore#24 referenced in function "private: bool __thiscall CertificateStore::saveCertStore(class LogBase &)" (?saveCertStore#CertificateStore##AAE_NAAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertDeleteCertificateFromStore#4 referenced in function "public: bool __thiscall CertificateStore::removeCertificate(class MsCertificate *,class LogBase &)" (?removeCertificate#CertificateStore##QAE_NPAVMsCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol __imp__CertGetSubjectCertificateFromStore#12 referenced in function "public: class MsCertificate * __thiscall CertificateStore::findCertificate(struct _CERT_INFO *)" (?findCertificate#CertificateStore##QAEPAVMsCertificate##PAU_CERT_INFO###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol __imp__CertGetSubjectCertificateFromStore#12
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptMsgControl#16 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInnerAlt#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptMsgGetParam#20 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInnerAlt#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptMsgClose#4 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInnerAlt#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptMsgUpdate#16 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInnerAlt#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptMsgOpenToDecode#24 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInnerAlt#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptDecryptMessage#24 referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInner(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" (?msDecryptInner#_ckMsCrypto##CA_NABVDataBuffer##AAV2#PAPAVCertificate##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptSignMessage#28 referenced in function "public: static bool __cdecl _ckMsCrypto::msCryptoSignature(class CryptoSettings2 &,class Certificate &,bool,class SystemCerts &,unsigned char const *,unsigned int,int,class DataBuffer &,class LogBase &)" (?msCryptoSignature#_ckMsCrypto##SA_NAAVCryptoSettings2##AAVCertificate##_NAAVSystemCerts##PBEIHAAVDataBuffer##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptEncodeObject#20 referenced in function "public: static bool __cdecl _ckMsCrypto::msCryptoSignature(class CryptoSettings2 &,class Certificate &,bool,class SystemCerts &,unsigned char const *,unsigned int,int,class DataBuffer &,class LogBase &)" (?msCryptoSignature#_ckMsCrypto##SA_NAAVCryptoSettings2##AAVCertificate##_NAAVSystemCerts##PBEIHAAVDataBuffer##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptVerifyMessageSignature#28 referenced in function "private: static bool __cdecl _ckMsCrypto::msVerifySignatureInner(class CryptoSettings2 &,class DataBuffer const &,class DataBuffer &,class ExtPtrArray &,class LogBase &)" (?msVerifySignatureInner#_ckMsCrypto##CA_NAAVCryptoSettings2##ABVDataBuffer##AAV3#AAVExtPtrArray##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptVerifyDetachedMessageSignature#32 referenced in function "private: static bool __cdecl _ckMsCrypto::msVerifyDetachedSignatureInner(class CryptoSettings2 &,class DataBuffer const &,unsigned char const *,unsigned long,class ExtPtrArray &,class LogBase &)" (?msVerifyDetachedSignatureInner#_ckMsCrypto##CA_NAAVCryptoSettings2##ABVDataBuffer##PBEKAAVExtPtrArray##AAVLogBase###Z)
1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol __imp__CryptEncryptMessage#28 referenced in function "private: static bool __cdecl _ckMsCrypto::msEncryptInner(class CryptoSettings2 &,unsigned char const *,unsigned long,class DataBuffer &,class ExtPtrArray &,class LogBase &)" (?msEncryptInner#_ckMsCrypto##CA_NAAVCryptoSettings2##PBEKAAVDataBuffer##AAVExtPtrArray##AAVLogBase###Z)
1>c:\users\simboyd\documents\visual studio 2010\Projects\botnet\Debug\botnet.exe : fatal error LNK1120: 54 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.33
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any idea how to fix this? Thanks in advance.
If anybody is wondering how I fixed it: add Crypt32.lib and ws2_32.lib to additional dependencies (Linker > Input).
You're not linking the windows sockets import lib. Their library won't pull it in for you. It needs to be added to your linker-dependencies as well. It looks like their library is actually a static lib that expects your program to be linked as a MT DLL.
Add ws2_32.lib to your library list on your linker settings configuration (where you added your 3rd-party library).
It looks like you need to link to Ws2_32.lib which is the import library winsock.
I was given an assignment to compile a 3d Max plugin in 64 bit.
Project compiles properly under 32 bits, but when I follow the instructions from here:
How to compile a 64-bit application using Visual C++ 2010 Express?
to setup compile platform to x64. The project compiles, but when Generating Code I get linker errors:
1>DllEntry.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl InitCustomControls(struct HINSTANCE__ *)" (__imp_?InitCustomControls##YAXPEAUHINSTANCE__###Z) referenced in function DllMain
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Matrix3::IdentityMatrix(void)" (__imp_?IdentityMatrix#Matrix3##QEAAXXZ) referenced in function "public: __cdecl Matrix3::Matrix3(int)" (??0Matrix3##QEAA#H#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl MaxHeapOperators::operator delete(void *)" (__imp_??3MaxHeapOperators##SAXPEAX#Z) referenced in function "public: virtual void * __cdecl SceneExport::`scalar deleting destructor'(unsigned int)" (??_GSceneExport##UEAAPEAXI#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl ClassDesc2::ClassDesc2(void)" (__imp_??0ClassDesc2##QEAA#XZ) referenced in function "public: __cdecl CMaxExporterClassDesc::CMaxExporterClassDesc(void)" (??0CMaxExporterClassDesc##QEAA#XZ)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::ResetClassParams(int)" (?ResetClassParams#ClassDesc2##UEAAXH#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl ClassDesc2::NumParamBlockDescs(void)" (?NumParamBlockDescs#ClassDesc2##UEAAHXZ)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual class ParamBlockDesc2 * __cdecl ClassDesc2::GetParamBlockDesc(int)" (?GetParamBlockDesc#ClassDesc2##UEAAPEAVParamBlockDesc2##H#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual class ParamBlockDesc2 * __cdecl ClassDesc2::GetParamBlockDescByID(short)" (?GetParamBlockDescByID#ClassDesc2##UEAAPEAVParamBlockDesc2##F#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::AddParamBlockDesc(class ParamBlockDesc2 *)" (?AddParamBlockDesc#ClassDesc2##UEAAXPEAVParamBlockDesc2###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::BeginEditParams(class IObjParam *,class ReferenceMaker *,unsigned long,class Animatable *)" (?BeginEditParams#ClassDesc2##UEAAXPEAVIObjParam##PEAVReferenceMaker##KPEAVAnimatable###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::EndEditParams(class IObjParam *,class ReferenceMaker *,unsigned long,class Animatable *)" (?EndEditParams#ClassDesc2##UEAAXPEAVIObjParam##PEAVReferenceMaker##KPEAVAnimatable###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::InvalidateUI(class ParamBlockDesc2 *)" (?InvalidateUI#ClassDesc2##UEAAXPEAVParamBlockDesc2###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual char * __cdecl ClassDesc::GetRsrcString(__int64)" (?GetRsrcString#ClassDesc##UEAAPEAD_J#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc2::MakeAutoParamBlocks(class ReferenceMaker *)" (?MakeAutoParamBlocks#ClassDesc2##UEAAXPEAVReferenceMaker###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl ClassDesc2::NumParamMaps(void)" (?NumParamMaps#ClassDesc2##UEAAHXZ)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual class IParamMap2 * __cdecl ClassDesc2::GetParamMap(int)" (?GetParamMap#ClassDesc2##UEAAPEAVIParamMap2##H#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual class FPInterface * __cdecl ClassDesc::GetInterface(char *)" (?GetInterface#ClassDesc##UEAAPEAVFPInterface##PEAD#Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual class FPInterface * __cdecl ClassDesc::GetInterface(class Interface_ID)" (?GetInterface#ClassDesc##UEAAPEAVFPInterface##VInterface_ID###Z)
1>exporter.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ClassDesc::AddInterface(class FPInterface *)" (?AddInterface#ClassDesc##UEAAXPEAVFPInterface###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl ClassDesc2::SetUserDlgProc(class ParamBlockDesc2 *,short,class ParamMap2UserDlgProc *)" (__imp_?SetUserDlgProc#ClassDesc2##QEAAXPEAVParamBlockDesc2##FPEAVParamMap2UserDlgProc###Z) referenced in function "public: virtual void __cdecl ClassDesc2::SetUserDlgProc(class ParamBlockDesc2 *,class ParamMap2UserDlgProc *)" (?SetUserDlgProc#ClassDesc2##UEAAXPEAVParamBlockDesc2##PEAVParamMap2UserDlgProc###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl ClassDesc2::~ClassDesc2(void)" (__imp_??1ClassDesc2##UEAA#XZ) referenced in function "public: virtual __cdecl CMaxExporterClassDesc::~CMaxExporterClassDesc(void)" (??1CMaxExporterClassDesc##UEAA#XZ)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl zfree(void * *)" (__imp_?zfree##YAXPEAPEAX#Z) referenced in function "public: __cdecl Tab<class Point3>::~Tab<class Point3>(void)" (??1?$Tab#VPoint3####QEAA#XZ)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl TBSetCount(struct TabHdr * *,int,int,int)" (__imp_?TBSetCount##YAXPEAPEAUTabHdr##HHH#Z) referenced in function "public: void __cdecl Tab<class Point3>::SetCount(int,int)" (?SetCount#?$Tab#VPoint3####QEAAXHH#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class Point3 __cdecl Normalize(class Point3 const &)" (__imp_?Normalize##YA?AVPoint3##AEBV1##Z) referenced in function "public: void __cdecl VNormal::Normalize(void)" (?Normalize#VNormal##QEAAXXZ)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class TVFace * __cdecl Mesh::mapFaces(int)const " (__imp_?mapFaces#Mesh##QEBAPEAVTVFace##H#Z) referenced in function "protected: void __cdecl CMaxExporter::ExportColors(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportColors#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Point3 * __cdecl Mesh::mapVerts(int)const " (__imp_?mapVerts#Mesh##QEBAPEAVPoint3##H#Z) referenced in function "protected: void __cdecl CMaxExporter::ExportColors(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportColors#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class Point3 __cdecl operator*(class Point3 const &,class Matrix3 const &)" (__imp_??D#YA?AVPoint3##AEBV0#AEBVMatrix3###Z) referenced in function "protected: void __cdecl CMaxExporter::ExportVertices(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportVertices#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl ApplyScaling(class Matrix3 &,class ScaleValue const &)" (__imp_?ApplyScaling##YAXAEAVMatrix3##AEBVScaleValue###Z) referenced in function "protected: void __cdecl CMaxExporter::ExportVertices(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportVertices#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl PreRotateMatrix(class Matrix3 &,class Quat const &)" (__imp_?PreRotateMatrix##YAXAEAVMatrix3##AEBVQuat###Z) referenced in function "protected: void __cdecl CMaxExporter::ExportVertices(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportVertices#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Matrix3::PreTranslate(class Point3 const &)" (__imp_?PreTranslate#Matrix3##QEAAXAEBVPoint3###Z) referenced in function "protected: void __cdecl CMaxExporter::ExportVertices(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportVertices#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Matrix3::SetRow(int,class Point3)" (__imp_?SetRow#Matrix3##QEAAXHVPoint3###Z) referenced in function "protected: void __cdecl CMaxExporter::ExportNormalsTangents(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportNormalsTangents#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Point3 __cdecl Point3::operator^(class Point3 const &)const " (__imp_??TPoint3##QEBA?AV0#AEBV0##Z) referenced in function "protected: void __cdecl CMaxExporter::ExportNormalsTangents(class INode *,class Mesh &,struct pmesh::mesh_desc &)" (?ExportNormalsTangents#CMaxExporter##IEAAXPEAVINode##AEAVMesh##AEAUmesh_desc#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl CStr::operator char *(void)" (__imp_??BCStr##QEAAPEADXZ) referenced in function "protected: void __cdecl CMaxExporter::Log(char const *,struct pmesh::mesh_file &)" (?Log#CMaxExporter##IEAAXPEBDAEAUmesh_file#pmesh###Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl MaxHeapOperators::operator new(unsigned __int64)" (__imp_??2MaxHeapOperators##SAPEAX_K#Z) referenced in function "public: virtual void * __cdecl CMaxExporterClassDesc::Create(int)" (?Create#CMaxExporterClassDesc##UEAAPEAXH#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Mesh::~Mesh(void)" (__imp_??1Mesh##UEAA#XZ) referenced in function "protected: void __cdecl CMaxExporter::ExportMesh(class INode *,class Object *,struct pmesh::mesh_node *,bool)" (?ExportMesh#CMaxExporter##IEAAXPEAVINode##PEAVObject##PEAUmesh_node#pmesh##_N#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl Matrix3::Parity(void)const " (__imp_?Parity#Matrix3##QEBAHXZ) referenced in function "protected: void __cdecl CMaxExporter::ExportMesh(class INode *,class Object *,struct pmesh::mesh_node *,bool)" (?ExportMesh#CMaxExporter##IEAAXPEAVINode##PEAVObject##PEAUmesh_node#pmesh##_N#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Mesh::Mesh(class Mesh const &)" (__imp_??0Mesh##QEAA#AEBV0##Z) referenced in function "protected: void __cdecl CMaxExporter::ExportMesh(class INode *,class Object *,struct pmesh::mesh_node *,bool)" (?ExportMesh#CMaxExporter##IEAAXPEAVINode##PEAVObject##PEAUmesh_node#pmesh##_N#Z)
1>exporter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl DebugPrint(char const *,...)" (__imp_?DebugPrint##YAXPEBDZZ) referenced in function "protected: void __cdecl CMaxExporter::ExportMesh(class INode *,class Object *,struct pmesh::mesh_node *,bool)" (?ExportMesh#CMaxExporter##IEAAXPEAVINode##PEAVObject##PEAUmesh_node#pmesh##_N#Z)
What am I doing wrong?
As a follow-up for anybody having the same problem: You need to select x64 variant of the libraries at the Linker->General->AdditionalLibraryDirectories. Once you install 3Ds MAX SDK with the default options you should have them located at: C:\Program Files (x86)\Autodesk\maxsdk\x64\lib;
I followed the instructions to the best of my ability. downloaded GPBuffers 5.0rc1 put the src/google folder into my project directory. Added the path to Settings > C/C++ > "Additional Include Directories".
But I think I need to place a -lprotobuf compiler option somewhere. I tried adding this to the C/C++ and Linker in the Settings > xxx > Additional Command Line Parameters.
But no luck.
It seems the libprotobuf.lib, libprotobuf-lite.lib and libprotoc.lib are missing. Perhaps it did not build correctly..
I have my serverThread.cpp which looks like:
#include "serverThread.h"
#include "sendStruct.h"
#include <fstream>
#include <string>
#include "messages.pb.h"
The log is reproduced below.
It seems its missing a reference to some library. As most of the dependencies are there.
Error 62 error LNK1120: 60 unresolved externals C:\work\freetimeC+\ServerUpdater\Debug\ServerUpdater.exe
Error 37 error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const google::protobuf::internal::kEmptyString" (?kEmptyString#internal#protobuf#google##3V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##B) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 34 error LNK2001: unresolved external symbol "private: virtual void __thiscall google::protobuf::Message::SetCachedSize(int)const " (?SetCachedSize#Message#protobuf#google##EBEXH#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 27 error LNK2001: unresolved external symbol "public: virtual bool __thiscall google::protobuf::Message::IsInitialized(void)const " (?IsInitialized#Message#protobuf#google##UBE_NXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 28 error LNK2001: unresolved external symbol "public: virtual bool __thiscall google::protobuf::Message::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Message#protobuf#google##UAE_NPAVCodedInputStream#io#23##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 21 error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall google::protobuf::Message::GetTypeName(void)const " (?GetTypeName#Message#protobuf#google##UBE?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 22 error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall google::protobuf::Message::InitializationErrorString(void)const " (?InitializationErrorString#Message#protobuf#google##UBE?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 35 error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall google::protobuf::MessageLite::InitializationErrorString(void)const " (?InitializationErrorString#MessageLite#protobuf#google##UBE?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 29 error LNK2001: unresolved external symbol "public: virtual int __thiscall google::protobuf::Message::ByteSize(void)const " (?ByteSize#Message#protobuf#google##UBEHXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 25 error LNK2001: unresolved external symbol "public: virtual int __thiscall google::protobuf::Message::SpaceUsed(void)const " (?SpaceUsed#Message#protobuf#google##UBEHXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 31 error LNK2001: unresolved external symbol "public: virtual unsigned char * __thiscall google::protobuf::MessageLite::SerializeWithCachedSizesToArray(unsigned char *)const " (?SerializeWithCachedSizesToArray#MessageLite#protobuf#google##UBEPAEPAE#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 23 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::CheckTypeAndMergeFrom(class google::protobuf::MessageLite const &)" (?CheckTypeAndMergeFrom#Message#protobuf#google##UAEXABVMessageLite#23##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 26 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::Clear(void)" (?Clear#Message#protobuf#google##UAEXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 32 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::CopyFrom(class google::protobuf::Message const &)" (?CopyFrom#Message#protobuf#google##UAEXABV123##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 24 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::DiscardUnknownFields(void)" (?DiscardUnknownFields#Message#protobuf#google##UAEXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 33 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::MergeFrom(class google::protobuf::Message const &)" (?MergeFrom#Message#protobuf#google##UAEXABV123##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 30 error LNK2001: unresolved external symbol "public: virtual void __thiscall google::protobuf::Message::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Message#protobuf#google##UBEXPAVCodedOutputStream#io#23##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 43 error LNK2019: unresolved external symbol "private: bool __thiscall google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int *)" (?ReadVarint32Fallback#CodedInputStream#io#protobuf#google##AAE_NPAI#Z) referenced in function "public: bool __thiscall google::protobuf::io::CodedInputStream::ReadVarint32(unsigned int *)" (?ReadVarint32#CodedInputStream#io#protobuf#google##QAE_NPAI#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 53 error LNK2019: unresolved external symbol "private: static int __cdecl google::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned int)" (?VarintSize32Fallback#CodedOutputStream#io#protobuf#google##CAHI#Z) referenced in function "public: static int __cdecl google::protobuf::io::CodedOutputStream::VarintSize32(unsigned int)" (?VarintSize32#CodedOutputStream#io#protobuf#google##SAHI#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 49 error LNK2019: unresolved external symbol "private: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned int,unsigned char *)" (?WriteVarint32FallbackToArray#CodedOutputStream#io#protobuf#google##CAPAEIPAE#Z) referenced in function "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteTagToArray(unsigned int,unsigned char *)" (?WriteTagToArray#CodedOutputStream#io#protobuf#google##SAPAEIPAE#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 44 error LNK2019: unresolved external symbol "private: static void __cdecl google::protobuf::internal::WireFormat::VerifyUTF8StringFallback(char const *,int,enum google::protobuf::internal::WireFormat::Operation)" (?VerifyUTF8StringFallback#WireFormat#internal#protobuf#google##CAXPBDHW4Operation#1234##Z) referenced in function "public: static void __cdecl google::protobuf::internal::WireFormat::VerifyUTF8String(char const *,int,enum google::protobuf::internal::WireFormat::Operation)" (?VerifyUTF8String#WireFormat#internal#protobuf#google##SAXPBDHW4Operation#1234##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 42 error LNK2019: unresolved external symbol "private: unsigned int __thiscall google::protobuf::io::CodedInputStream::ReadTagFallback(void)" (?ReadTagFallback#CodedInputStream#io#protobuf#google##AAEIXZ) referenced in function "public: unsigned int __thiscall google::protobuf::io::CodedInputStream::ReadTag(void)" (?ReadTag#CodedInputStream#io#protobuf#google##QAEIXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 38 error LNK2019: unresolved external symbol "private: void __thiscall google::protobuf::UnknownFieldSet::ClearFallback(void)" (?ClearFallback#UnknownFieldSet#protobuf#google##AAEXXZ) referenced in function "public: void __thiscall google::protobuf::UnknownFieldSet::Clear(void)" (?Clear#UnknownFieldSet#protobuf#google##QAEXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 61 error LNK2019: unresolved external symbol "protected: void __thiscall google::protobuf::internal::RepeatedPtrFieldBase::Reserve(int)" (?Reserve#RepeatedPtrFieldBase#internal#protobuf#google##IAEXH#Z) referenced in function "protected: class ArchProtocol::Person_PhoneNumber * __thiscall google::protobuf::internal::RepeatedPtrFieldBase::Add<class google::protobuf::RepeatedPtrField<class ArchProtocol::Person_PhoneNumber>::TypeHandler>(void)" (??$Add#VTypeHandler#?$RepeatedPtrField#VPerson_PhoneNumber#ArchProtocol###protobuf#google###RepeatedPtrFieldBase#internal#protobuf#google##IAEPAVPerson_PhoneNumber#ArchProtocol##XZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 58 error LNK2019: unresolved external symbol "protected: void __thiscall google::protobuf::internal::RepeatedPtrFieldBase::Swap(class google::protobuf::internal::RepeatedPtrFieldBase *)" (?Swap#RepeatedPtrFieldBase#internal#protobuf#google##IAEXPAV1234##Z) referenced in function "public: void __thiscall google::protobuf::RepeatedPtrField<class ArchProtocol::Person_PhoneNumber>::Swap(class google::protobuf::RepeatedPtrField<class ArchProtocol::Person_PhoneNumber> *)" (?Swap#?$RepeatedPtrField#VPerson_PhoneNumber#ArchProtocol###protobuf#google##QAEXPAV123##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 2 error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(class google::protobuf::Descriptor const *,class google::protobuf::Message const *,int const * const,int,int,int,class google::protobuf::DescriptorPool const *,class google::protobuf::MessageFactory *,int)" (??0GeneratedMessageReflection#internal#protobuf#google##QAE#PBVDescriptor#23#PBVMessage#23#QBHHHHPBVDescriptorPool#23#PAVMessageFactory#23#H#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 4 error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (??1LogMessage#internal#protobuf#google##QAE#XZ) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 7 error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (??0LogMessage#internal#protobuf#google##QAE#W4LogLevel#23#PBDH#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 18 error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::UnknownFieldSet::~UnknownFieldSet(void)" (??1UnknownFieldSet#protobuf#google##QAE#XZ) referenced in function __unwindfunclet$??0Person_PhoneNumber#ArchProtocol##QAE#XZ$0 C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 20 error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::UnknownFieldSet::UnknownFieldSet(void)" (??0UnknownFieldSet#protobuf#google##QAE#XZ) referenced in function "public: __thiscall ArchProtocol::Person_PhoneNumber::Person_PhoneNumber(void)" (??0Person_PhoneNumber#ArchProtocol##QAE#XZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 8 error LNK2019: unresolved external symbol "public: class google::protobuf::FileDescriptor const * __thiscall google::protobuf::DescriptorPool::FindFileByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?FindFileByName#DescriptorPool#protobuf#google##QBEPBVFileDescriptor#23#ABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 6 error LNK2019: unresolved external symbol "public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (??6LogMessage#internal#protobuf#google##QAEAAV0123#PBD#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 60 error LNK2019: unresolved external symbol "public: int __thiscall google::protobuf::io::CodedInputStream::PushLimit(int)" (?PushLimit#CodedInputStream#io#protobuf#google##QAEHH#Z) referenced in function "public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual<class ArchProtocol::Person_PhoneNumber>(class google::protobuf::io::CodedInputStream*,class ArchProtocol::Person_PhoneNumber *)" (??$ReadMessageNoVirtual#VPerson_PhoneNumber#ArchProtocol###WireFormatLite#internal#protobuf#google##SA_NPAVCodedInputStream#io#23#PAVPerson_PhoneNumber#ArchProtocol###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 39 error LNK2019: unresolved external symbol "public: static bool __cdecl google::protobuf::internal::WireFormat::SkipField(class google::protobuf::io::CodedInputStream *,unsigned int,class google::protobuf::UnknownFieldSet *)" (?SkipField#WireFormat#internal#protobuf#google##SA_NPAVCodedInputStream#io#34#IPAVUnknownFieldSet#34##Z) referenced in function "public: virtual bool __thiscall ArchProtocol::Person_PhoneNumber::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Person_PhoneNumber#ArchProtocol##UAE_NPAVCodedInputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 41 error LNK2019: unresolved external symbol "public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadString(class google::protobuf::io::CodedInputStream *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?ReadString#WireFormatLite#internal#protobuf#google##SA_NPAVCodedInputStream#io#34#PAV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) referenced in function "public: virtual bool __thiscall ArchProtocol::Person_PhoneNumber::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Person_PhoneNumber#ArchProtocol##UAE_NPAVCodedInputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 9 error LNK2019: unresolved external symbol "public: static class google::protobuf::DescriptorPool const * __cdecl google::protobuf::DescriptorPool::generated_pool(void)" (?generated_pool#DescriptorPool#protobuf#google##SAPBV123#XZ) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 3 error LNK2019: unresolved external symbol "public: static class google::protobuf::MessageFactory * __cdecl google::protobuf::MessageFactory::generated_factory(void)" (?generated_factory#MessageFactory#protobuf#google##SAPAV123#XZ) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 52 error LNK2019: unresolved external symbol "public: static int __cdecl google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(class google::protobuf::UnknownFieldSet const &)" (?ComputeUnknownFieldsSize#WireFormat#internal#protobuf#google##SAHABVUnknownFieldSet#34##Z) referenced in function "public: virtual int __thiscall ArchProtocol::Person_PhoneNumber::ByteSize(void)const " (?ByteSize#Person_PhoneNumber#ArchProtocol##UBEHXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 48 error LNK2019: unresolved external symbol "public: static unsigned char * __cdecl google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(class google::protobuf::UnknownFieldSet const &,unsigned char *)" (?SerializeUnknownFieldsToArray#WireFormat#internal#protobuf#google##SAPAEABVUnknownFieldSet#34#PAE#Z) referenced in function "public: virtual unsigned char * __thiscall ArchProtocol::Person_PhoneNumber::SerializeWithCachedSizesToArray(unsigned char *)const " (?SerializeWithCachedSizesToArray#Person_PhoneNumber#ArchProtocol##UBEPAEPAE#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 51 error LNK2019: unresolved external symbol "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteRawToArray(void const *,int,unsigned char *)" (?WriteRawToArray#CodedOutputStream#io#protobuf#google##SAPAEPBXHPAE#Z) referenced in function "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteStringToArray(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *)" (?WriteStringToArray#CodedOutputStream#io#protobuf#google##SAPAEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAE#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 50 error LNK2019: unresolved external symbol "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteVarint64ToArray(unsigned __int64,unsigned char *)" (?WriteVarint64ToArray#CodedOutputStream#io#protobuf#google##SAPAE_KPAE#Z) referenced in function "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteVarint32SignExtendedToArray(int,unsigned char *)" (?WriteVarint32SignExtendedToArray#CodedOutputStream#io#protobuf#google##SAPAEHPAE#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 16 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const *,int)" (?InternalAddGeneratedFile#DescriptorPool#protobuf#google##SAXPBXH#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AddDesc_messages_2eproto(void)" (?protobuf_AddDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 54 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::ReflectionOps::Merge(class google::protobuf::Message const &,class google::protobuf::Message *)" (?Merge#ReflectionOps#internal#protobuf#google##SAXABVMessage#34#PAV534##Z) referenced in function "public: virtual void __thiscall ArchProtocol::Person_PhoneNumber::MergeFrom(class google::protobuf::Message const &)" (?MergeFrom#Person_PhoneNumber#ArchProtocol##UAEXABVMessage#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 45 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::WireFormat::SerializeUnknownFields(class google::protobuf::UnknownFieldSet const &,class google::protobuf::io::CodedOutputStream *)" (?SerializeUnknownFields#WireFormat#internal#protobuf#google##SAXABVUnknownFieldSet#34#PAVCodedOutputStream#io#34##Z) referenced in function "public:virtual void __thiscall ArchProtocol::Person_PhoneNumber::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Person_PhoneNumber#ArchProtocol##UBEXPAVCodedOutputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 46 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteEnum(int,int,class google::protobuf::io::CodedOutputStream *)" (?WriteEnum#WireFormatLite#internal#protobuf#google##SAXHHPAVCodedOutputStream#io#34##Z) referenced in function "public: virtual void __thiscall ArchProtocol::Person_PhoneNumber::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Person_PhoneNumber#ArchProtocol##UBEXPAVCodedOutputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 57 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteInt32(int,int,class google::protobuf::io::CodedOutputStream *)" (?WriteInt32#WireFormatLite#internal#protobuf#google##SAXHHPAVCodedOutputStream#io#34##Z) referenced in function "public: virtual void __thiscall ArchProtocol::Person::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Person#ArchProtocol##UBEXPAVCodedOutputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 56 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(int,class google::protobuf::MessageLite const &,class google::protobuf::io::CodedOutputStream *)" (?WriteMessageMaybeToArray#WireFormatLite#internal#protobuf#google##SAXHABVMessageLite#34#PAVCodedOutputStream#io#34##Z) referenced in function"public: virtual void __thiscall ArchProtocol::Person::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Person#ArchProtocol##UBEXPAVCodedOutputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 47 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteString(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class google::protobuf::io::CodedOutputStream *)" (?WriteString#WireFormatLite#internal#protobuf#google##SAXHABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAVCodedOutputStream#io#34##Z) referenced in function "public: virtual void __thiscall ArchProtocol::Person_PhoneNumber::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes#Person_PhoneNumber#ArchProtocol##UBEXPAVCodedOutputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 15 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const *,void (__cdecl*)(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" (?InternalRegisterGeneratedFile#MessageFactory#protobuf#google##SAXPBDP6AXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AddDesc_messages_2eproto(void)" (?protobuf_AddDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 10 error LNK2019: unresolved external symbol "public: static void __cdecl google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(class google::protobuf::Descriptor const *,class google::protobuf::Message const *)" (?InternalRegisterGeneratedMessage#MessageFactory#protobuf#google##SAXPBVDescriptor#23#PBVMessage#23##Z) referenced in function "void __cdecl ArchProtocol::`anonymous namespace'::protobuf_RegisterTypes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?protobuf_RegisterTypes#?A0x2751caee#ArchProtocol##YAXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 13 error LNK2019: unresolved external symbol "public: virtual __thiscall google::protobuf::Closure::~Closure(void)" (??1Closure#protobuf#google##UAE#XZ) referenced in function "public: virtual void * __thiscall google::protobuf::Closure::`scalar deleting destructor'(unsigned int)" (??_GClosure#protobuf#google##UAEPAXI#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 11 error LNK2019: unresolved external symbol "public: virtual __thiscall google::protobuf::internal::FunctionClosure0::~FunctionClosure0(void)" (??1FunctionClosure0#internal#protobuf#google##UAE#XZ) referenced in function "void __cdecl google::protobuf::GoogleOnceInit(int *,void (__cdecl*)(void))" (?GoogleOnceInit#protobuf#google##YAXPAHP6AXXZ#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 19 error LNK2019: unresolved external symbol "public: virtual __thiscall google::protobuf::Message::~Message(void)" (??1Message#protobuf#google##UAE#XZ) referenced in function __unwindfunclet$??0Person_PhoneNumber#ArchProtocol##QAE#XZ$0 C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 36 error LNK2019: unresolved external symbol "public: virtual __thiscall google::protobuf::MessageLite::~MessageLite(void)" (??1MessageLite#protobuf#google##UAE#XZ) referenced in function "public: virtual void * __thiscall google::protobuf::MessageLite::`scalar deleting destructor'(unsigned int)" (??_GMessageLite#protobuf#google##UAEPAXI#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 5 error LNK2019: unresolved external symbol "public: void __thiscall google::protobuf::internal::LogFinisher::operator=(class google::protobuf::internal::LogMessage &)" (??4LogFinisher#internal#protobuf#google##QAEXAAVLogMessage#123##Z) referenced in function "void __cdecl ArchProtocol::protobuf_AssignDesc_messages_2eproto(void)" (?protobuf_AssignDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 59 error LNK2019: unresolved external symbol "public: void __thiscall google::protobuf::io::CodedInputStream::PopLimit(int)" (?PopLimit#CodedInputStream#io#protobuf#google##QAEXH#Z) referenced in function "public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual<class ArchProtocol::Person_PhoneNumber>(class google::protobuf::io::CodedInputStream *,class ArchProtocol::Person_PhoneNumber *)" (??$ReadMessageNoVirtual#VPerson_PhoneNumber#ArchProtocol###WireFormatLite#internal#protobuf#google##SA_NPAVCodedInputStream#io#23#PAVPerson_PhoneNumber#ArchProtocol###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 40 error LNK2019: unresolved external symbol "public: void __thiscall google::protobuf::UnknownFieldSet::AddVarint(int,unsigned __int64)" (?AddVarint#UnknownFieldSet#protobuf#google##QAEXH_K#Z) referenced in function "public: virtual bool __thiscall ArchProtocol::Person_PhoneNumber::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Person_PhoneNumber#ArchProtocol##UAE_NPAVCodedInputStream#io#protobuf#google###Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 55 error LNK2019: unresolved external symbol "public: void __thiscall google::protobuf::UnknownFieldSet::MergeFrom(class google::protobuf::UnknownFieldSet const &)" (?MergeFrom#UnknownFieldSet#protobuf#google##QAEXABV123##Z) referenced in function "public: void __thiscall ArchProtocol::Person_PhoneNumber::MergeFrom(class ArchProtocol::Person_PhoneNumber const &)" (?MergeFrom#Person_PhoneNumber#ArchProtocol##QAEXABV12##Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 12 error LNK2019: unresolved external symbol "void __cdecl google::protobuf::GoogleOnceInitImpl(int *,class google::protobuf::Closure *)" (?GoogleOnceInitImpl#protobuf#google##YAXPAHPAVClosure#12##Z) referenced in function "void __cdecl google::protobuf::GoogleOnceInit(int *,void (__cdecl*)(void))" (?GoogleOnceInit#protobuf#google##YAXPAHP6AXXZ#Z) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 14 error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::OnShutdown(void (__cdecl*)(void))" (?OnShutdown#internal#protobuf#google##YAXP6AXXZ#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AddDesc_messages_2eproto(void)" (?protobuf_AddDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Error 17 error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::VerifyVersion(int,int,char const *)" (?VerifyVersion#internal#protobuf#google##YAXHHPBD#Z) referenced in function "void __cdecl ArchProtocol::protobuf_AddDesc_messages_2eproto(void)" (?protobuf_AddDesc_messages_2eproto#ArchProtocol##YAXXZ) C:\work\freetimeC+\ServerUpdater\ServerUpdater\messages.pb.obj
Needed to compile Protobuf correctly. There is a vsprojects folder. Just build ONLY the libprotobuf and add the libprotobuf.lib as reference to the project by going to:
Properties > Linker > Input : Additional Dependencies > Edit...
If you copied it to your project folder/google put in google/libprotobuf.lib
Everything should compile smoothly now.
If you are building protobufs as a DLL then you will also need to define PROTOBUF_USE_DLLS in your client application to get it to pull in the DLL import __declspec stuff properly.
See https://code.google.com/p/protobuf/issues/detail?id=308#c9 for details.