Hey Shree, Thanks for replying. No I didn't build using cppan and cmake. I used vcpkg install command. Isn't vcpkg supposed to acquire and install everything?
On Sunday, March 25, 2018 at 5:46:06 PM UTC-7, shree wrote: > > Did you build using cppan and cmake? > > On Mon 26 Mar, 2018, 1:50 AM sonu sainju, <sainj...@gmail.com > <javascript:>> wrote: > >> Hi, >> >> I followed instruction in >> https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows >> <https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows> to >> build tesseract and use it in vs2015 project. After installing tesseract >> via vcpkg, I exported it as a nuget pkg and added it to my project like any >> other nuget pkg but I am getting link errors like: >> Severity Code Description Project File Line Suppression State >> Error LNK2001 unresolved external symbol closesocket Project1 >> c:\Users\sonu's\documents\visual >> studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1 >> Error LNK2001 unresolved external symbol connect Project1 >> c:\Users\sonu's\documents\visual >> studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1 >> Error LNK2001 unresolved external symbol htons Project1 >> c:\Users\sonu's\documents\visual >> studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1 >> ... >> >> Is there something I have missed? Has anybody tried using tesseract api >> this way in vs 2015? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "tesseract-ocr" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to tesseract-oc...@googlegroups.com <javascript:>. >> To post to this group, send email to tesser...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/tesseract-ocr. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tesseract-ocr/d662f3a8-31d9-4100-bd44-7943444e01db%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tesseract-ocr/d662f3a8-31d9-4100-bd44-7943444e01db%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e3c24332-bca3-4969-b290-80f3e3054b7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.