Dimitrios Klimis created AVRO-1979:
--------------------------------------
Summary: Errors when using avroccp.lib in Visual studio 2015
Key: AVRO-1979
URL: https://issues.apache.org/jira/browse/AVRO-1979
Project: Avro
Issue Type: Bug
Components: c++
Affects Versions: 1.8.1
Environment: Windows 7, 64Bit, Visual studio 2015 build for 32 bit
debug and release library
Reporter: Dimitrios Klimis
Priority: Blocker
In my current c++ project I need to use avro c++ serializer. Firstly I built
boost 1.6.2 and based on it I build via Visual Studio 2015 the Avro-cpp.sln
file as it is mentioned in avro relevant site. From the sIn file I build
avrocpp.lib and avrocpp.dll and I added the first to my linker.
The code I've created uses the following include files
#include "avro/DataFile.hh"
#include "avro/Compiler.hh"
#include "avro/ValidSchema.hh"
#include "avro/Schema.hh"
#include "avro/Generic.hh"
#include "avro/Specific.hh"
However when I'm trying to build the project I get the following errors
error LNK2019: unresolved external symbol "public: void __thiscall
avro::DataFileWriterBase::syncIfNeeded(void)
error LNK2019: unresolved external symbol "public: __thiscall
avro::DataFileWriterBase::DataFileWriterBase(char const *,class
avro::ValidSchema const &,unsigned int,enum avro::Codec)"
error LNK2019: unresolved external symbol "public: __thiscall
avro::DataFileWriterBase::~DataFileWriterBase(void)"
(??1DataFileWriterBase@avro@@QAE@XZ) referenced in function "public: void *
__thiscall avro::DataFileWriterBase::`scalar deleting destructor'(unsigned
int)"
error LNK2019: unresolved external symbol "public: void __thiscall
avro::DataFileWriterBase::close(void)"
error LNK2019: unresolved external symbol "public: void __thiscall
avro::DataFileWriterBase::close(void)"
error LNK2019: unresolved external symbol "void __cdecl
avro::compileJsonSchema(class std::basic_istream<char,struct
std::char_traits<char> > &,class avro::ValidSchema &)"
error LNK2019: "public: void __thiscall avro::DataFileWriterBase::flush(void)"
I assume that the linker does not find the definition of the the specific
classes DataFileWriterBase and compileJsonSchema. Please can you give any hint
on what is wrong with the above issue?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)