glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
610 stars 435 forks source link

build error on win10 x64 #78

Closed smiler96 closed 5 years ago

smiler96 commented 5 years ago

when i have compiled the zxing cpp and generated a libzxing-debug.lib on win10 x64, and i used the lib and .h files in the zxing folder in my own project. But when i built the project, the error came as the following, (the more errors but i just listed some here, just same about the libzxing-debug.lib), what should i do to avoid this and success to run my project? a lot thanks for help!:

1>libzxing-debug.lib(OneDReader.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(UPCEANReader.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(DataMask.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(MultiFormatReader.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(QRCodeReader.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(LuminanceSource.obj) : error LNK2001: unresolved external symbol _purecall
1>libzxing-debug.lib(Binarizer.obj) : error LNK2001: unresolved external symbol _purecall

image there are lots of .cpp files named with the same name as the picture shows. Does it cause the build errors?

smiler96 commented 5 years ago

image

oh , no. Sorry about that, and I found the same .cpp files have been compiled to the coresponding files... But anyone can help me to this problem? Appreciate for you good guys!