CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2002
    Posts
    788

    where is my library specified

    Hi

    I am using visual studio 2012. When i compiled a third party solutions, i am facing a linkage error saying "cannot open file libxxx-0.2.4.lib" ......

    Now i checked the settings, project properties/linker/input, the library is not specified. My question is where is this library specified in the project? The project is supposed to link with a newer version of the library, but i just couldn't find where and how this library is specified for linkage!!

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: where is my library specified

    They can use
    #pragma comment(lib, ...)
    in some code file. There is also strange way just to add library to the project, like it is done with source files, this gives the same effect.

  3. #3
    Join Date
    Jul 2002
    Posts
    788

    Re: where is my library specified

    Hi AlexF,

    But i have tried to use the search tool Edit/Find in my Files... in visual studio in my solutions for the library name and i can't find any. how come?

  4. #4
    Join Date
    Jul 2002
    Posts
    2,543

    Re: where is my library specified

    #pragma may be also in some h-file, which is not part of the project, but included to one of the project files. Look also at linker command line in the project properties.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured