I need to use triangulation library, developed by Jonathan Shewchuk, in my c++ project. Problem is that C file must be compiled into object file which I have done using provided make file and visual studio compiler. This generates triangle.exe and triangle.obj.
Furthermore, in Qt I included header file triangle.h and object as LIBS += path/triangle.obj
Since there is main function in triangle.c I get the following linking errors:
LNK2005 that _main is already defined in main.obj
LNK2019 unresolved external symbol _triangulate reference
I never worked before with object references so if someone could help me with this one.