Problem compiling new project with ofxopencv

Created a new project using the project generator with the ofxopencv addon but when trying to compile I get these errors:

…\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL18icvUpdateWindowPosP8CvWindow+0x39)||undefined reference to GetCurrentObject@8'| ..\..\..\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL17icvCreateTrackbarPKcS0_PiiPFviEPFviPvES4_.part.3+0x555)||undefined reference toCreateToolbarEx@52’|
…\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL14MainWindowProcP6HWND__jjl+0x347)||undefined reference to CombineRgn@16'| ..\..\..\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL14MainWindowProcP6HWND__jjl+0x362)||undefined reference toCombineRgn@16’|
…\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL14MainWindowProcP6HWND__jjl+0x394)||undefined reference to FillRgn@12'| ..\..\..\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL11HighGUIProcP6HWND__jjl+0x17f)||undefined reference toGetCurrentObject@8’|
…\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL11HighGUIProcP6HWND__jjl+0x25b)||undefined reference to SetDIBColorTable@16'| ..\..\..\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$_ZL11HighGUIProcP6HWND__jjl+0x440)||undefined reference toGetCurrentObject@8’|
…\addons\ofxOpenCv\libs\opencv\lib\win_cb\libopencv_highgui231.a(window_w32.obj):window_w32.cpp:(.text$cvShowImage+0xbc)||undefined reference to `GetCurrentObject@8’|

any ideas?

Hey not really sure about this, but I usually take one of the opencv examples as a base vs starting a project via project generator

Yup, that did it… Weird… Something must be undeclared when using the project generator