Ask Your Question

Revision history [back]

Create_samples, compiling with static libraries, linker error in highgui module, createToolBarEx

When compiling the createsamples utility for image vector creation when performing traincascade operation, I wanted to use the static libraries. With other projects this worked perfectly, however, with the create_samples utility, an error is raised at the highgui lib when linking:

1>opencv_highgui245.lib(window_w32.obj) : error LNK2001: unresolved external symbol __imp_CreateToolbarEx
1>C:\Visual Studio Projects\cleaned_software\x64\Release\create_sample_vector.exe : fatal error LNK1120: 1 unresolved externals

Anyone has an idea as how to solve this problem?