How can I get rid of the __imp__ prefix in the linker in VC++?

后端 未结 5 1216
野性不改
野性不改 2020-12-01 06:29

I\'m using libcurl and am getting the following sort of linker errors in VC++ 10.

1>main.obj : error LNK2019: unresolved external symbol __imp__curl_easy_         


        
5条回答
  •  一生所求
    2020-12-01 06:59

    As Suma mentioned, .dll is normally accompanied by .lib. Therefore if you get such error messages like

    Error LNK2019 unresolved external symbol __imp__ referenced in function ...

    it is highly recommended to check the Linker settings of your project.

    In Visual Studio, just go for your project to

    Properties -> Linker -> General
    

    and check under entry Additional Library Directories, if the path to .lib is defined there. If not, just add it.

    Then check and define on

    Properties -> Linker -> Input
    

    under entry Additional Dependencies the probable missing .lib.

    The error message should disappear now.

    Hope it helps?

提交回复
热议问题