1

I am trying to build some programs, but every single time I want to do it, it returns me linking errors. I am using external libs.

I have already added path to /include directory in vc++ directories/include directories and path to /lib in linker/general and added *.lib in linker/input.

I have also tried

pragma comment(lib, "path\\*.lib")

Unfortunately I still receive linking errors 1120 and 2019. I am unable to work with external libs such as libcurland opencv. pragma comment helps only with ws2_32.lib

Ian Kemp
  • 28,293
  • 19
  • 112
  • 138
  • 2
    Can you post _exact_ error messages and linker configuration? – Lol4t0 Mar 27 '15 at 14:50
  • You'd better post exact text of the errors and how many of them happen at least. Technically this error mean that symbol you or one of libraries is trying to use could not be found in any of the libraries from your input path, but it's hard to tell what exactly happens based on your input. – Predelnik Mar 27 '15 at 14:52
  • Error 5 error LNK1120: 4 unresolved externals C:\Users\Admin\Documents\Visual Studio 2013\Projects\ConsoleApplicationAAA\Debug\ConsoleApplicationAAA.exe ConsoleApplicationAAA Error 4 error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main C:\Users\Admin\Documents\Visual Studio 2013\Projects\ConsoleApplicationAAA\maincpp.obj ConsoleApplicationAAA And more errors 2019. I am following this instruction: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to @Predelnik – MariusTrola Mar 27 '15 at 15:54
  • @MariusTrola Most likely you are running into something similar to this http://stackoverflow.com/questions/5159353/how-can-i-get-rid-of-the-imp-prefix-in-the-linker-in-vc – Predelnik Mar 27 '15 at 15:58

0 Answers0