Thread: add new library to VC 9.0

  1. #1
    Registered User
    Join Date
    May 2008
    Location
    IR, Iran
    Posts
    103

    add new library to VC 9.0

    hi,

    I have downloaded pdcurses the package contains "curses.h", "panel.h", "pdcurses.dll" and "pdcurses.lib"

    how could I add this library to my project?

    ----------------------------
    I have copied header files to VC\include folder and pdcurses.lib file to VC\lib folder. but i don't know what should I do with pdcurses.dll

    when I compile my codes it return error like this:
    ****.obj : error LNK2019: unresolved external symbol _endwin referenced in function _main

  2. #2
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    http://weblogs.asp.net/pwilson/archi...6/24/9214.aspx

    So by that it would seem to work by putting the dll in a system directory, adding a custom dll directory to your PATH, or throwing it in the exe's directory. IE the dll will be called implicitally by default when you start your app. Also it looks like your error there is due not to including the proper path/files for your pdcurses.lib. If it was the dll fault it just wouldn't startup.

  3. #3
    Registered User
    Join Date
    May 2008
    Location
    IR, Iran
    Posts
    103
    so what I should do now?
    It still does not work!

  4. #4
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    Are you including the VC\lib folder path in your library directories as well as including pdcurses.lib in your project?

  5. #5
    Registered User
    Join Date
    May 2008
    Location
    IR, Iran
    Posts
    103
    I'm not sure
    would you tell me how?

  6. #6
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    If using visual studio...
    Project Properties->Linker->General click Additional input directories
    Then hit Input, enter your lib file into additional dependencies.

    Make sure that you are setting the settings for the mode you intend to compile under(DEBUG / RELEASE)

  7. #7
    Registered User
    Join Date
    May 2008
    Location
    IR, Iran
    Posts
    103
    thanks
    I forgot to set it under release mode

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Add a dialog box to a tab
    By axr0284 in forum Windows Programming
    Replies: 0
    Last Post: 01-10-2005, 08:38 AM
  2. Library program - need some help
    By Guti14 in forum C Programming
    Replies: 4
    Last Post: 09-08-2004, 12:09 PM
  3. VC++6.0 Add member function Wizard
    By 7stud in forum C++ Programming
    Replies: 5
    Last Post: 04-05-2003, 08:48 PM
  4. Add and delete functions
    By Ana Val sazi in forum C++ Programming
    Replies: 5
    Last Post: 06-18-2002, 09:59 PM

Tags for this Thread