Solved [solved] error: undefined reference to '\_imp__is_InitCamera'*
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?
jsulm Lifetime Qt Champion last edited by
LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -uEye_api -uEye_tools
LIBS += -L"C:\Program Files\IDS\uEye\Develop\Lib" -lEye_api -lEye_tools
And you should avoid to use paths containing blanks: it often cause problems.
Thanks, that fixed it!