What is causing this error? I google\'d it and first few solutions I found were that something was wrong with the library and the main function but both seem to be fine in m
Well it seems that you are missing a reference to some library. I had the similar error solved it by adding a reference to the #pragma comment(lib, "windowscodecs.lib")