Использую вот это файл:
https://github.com/superhacker777/ivms-bf/blob/mas...
Вот код:
#include <iostream>
#include "./lib/HCNetSDK.h"
int main() {
if (!NET_DVR_Init()) {
printf("Error NET_DVR_Init\n.Exit.");
} else {
printf("done");
}
return 0;
}
Выдает вот такую ошибку при сборке:
CMakeFiles\Hikka.dir/objects.a(main.cpp.obj): In function `main':
C:/Users/alex/CLionProjects/Hikka/main.cpp:5: undefined reference to `NET_DVR_Init@0'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\Hikka.dir\build.make:96: recipe for target 'Hikka.exe' failed
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/Hikka.dir/all' failed
mingw32-make.exe[3]: *** [Hikka.exe] Error 1
mingw32-make.exe[2]: *** [CMakeFiles/Hikka.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles/Hikka.dir/rule] Error 2
CMakeFiles\Makefile2:78: recipe for target 'CMakeFiles/Hikka.dir/rule' failed
Makefile:117: recipe for target 'Hikka' failed
mingw32-make.exe: *** [Hikka] Error 2
Возможно в cmake нужно что-то добавить?