[solved] error: undefined reference to '\_imp__is_InitCamera'*
Solved
General and Desktop
-
Hi,
I am trying to grab an image from an uEye ethernet camera.
In the project .pro file, I've added INCLUDEPATH and LIBS to point to where the location of the uEye SDK is:
INCLUDEPATH += "C:\Program Files\IDS\uEye\Develop\include" LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -uEye_api -uEye_tools
In my code, I added:
#include "uEye.h" HIDS hCam = 1; printf("Success-Code: %d\n",IS_SUCCESS); INT nRet = is_InitCamera(&hCam, NULL);
When I tried to compile, Qt Creator complains that: mainwindow.cpp:27: error: undefined reference to '_imp__is_InitCamera'
Strange that I was typing the line is_, the IDE auto-complete the syntax to is_InitCamera.What did I do wrong?
-
Change
LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -uEye_api -uEye_tools
to
LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -lEye_api -lEye_toolsAnd you should avoid to use paths containing blanks: it often cause problems.