error LNK2001: unresolved external symbol _main
undefined reference to `WinMain@16'
you probably tried to compile only the library. The problem is that the linker can not find the main entry point of the program. So make sure you have a main function in your program, because the library does not have one.