LNK1146: no argument specified with option '/LIBPATH:'
-
I am doing simple program for opencv but I am getting Linking error.
My .pro file is
@
QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Pro
TEMPLATE = appSOURCES += main.cpp
dialog.cppHEADERS += dialog.h
FORMS += dialog.ui
INCLUDEPATH += C:\opencv\build\include
LIBS +=-LC:\opencv\build\x86\vc10\lib
-lopencv_calib3d245
-lopencv_calib3d245d
-lopencv_contrib245
-lopencv_contrib245d
@I am getting error as
bq. LNK1146: no argument specified with option '/LIBPATH:'
Please Help me...
-
What you specified in pro file is perfect. I presume you must be using the vc++ here. See if this "post":http://social.msdn.microsoft.com/Forums/vstudio/en-US/8f0257d5-66e8-47cc-9b19-582ec5491d55/link-fatal-error-lnk1146-no-argument-specified-with-option-libpath helps for you.
-
Hi and welcome to devnet,
You should rather use
@-LC:/opencv/build/x86/vc10/lib@
Also double check the capital L
-
Just to be on the safe side, please rebuild completely your project