I want to use Potrace for a C ++ project in Windows in Visual Studio, but I don't know how to incorporate Potrace into my project. I tried to compile C files using Cygwin and thus create a .a file and then link it to a visual studio, but that didn't work. Visual Studio was able to recognize the functions from Potrace, but when starting the test program with Potrace (Calling potrace_version ()), Visual Studio received the error message "LNK2019 unresolved external symbol _potrace_version referenced by function_main"
I got Ubuntu working using the technique described above and then compiled my code with: g ++ main.cpp backenddxf.cpp ImageManipulation.cpp./libubuntu/libpotrace.a -o test.out 'pkg-config --cflags --libs opencv
Do I have to compile the source code (Called "source distribution" on the website) into a lib file, and then link it to my project, in this case, how to do it? Or something I missed. I am using Visual Studio 2017 on Windows 10.
I should not understand the work of C ++, so a detailed explanation is very much appreciated.
source share