Thread: including libriaries

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    1

    including libriaries

    hi

    I am just learning C programming and have run into a problem that i am stuck with. I'm trying to include some libraries that I downloaded. There were two of them with filename like blahblah.lib. I tried copying them into my compiler's library folder and using a directive #inlcude <blahblah.lib>, but that did not work, the compiler did not see the library file. I cannot finish this project until I include these libraries and have been left on my own to figure it out, so i'm trying all my resources to find the answer. Thought maybe this would be a good place for some help, so i registered and here I am!. Any help would be appreciated

    Thanks

    GEL

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    61
    Have you tried including the full library path in quotes, like this:

    #include "PATH"

    HTH,
    $ENV: FreeBSD, gcc, emacs

  3. #3
    Deity
    Join Date
    Jun 2003
    Location
    Iceland
    Posts
    11
    Pragma.
    Code:
    #pragma comment (lib, "myfirstlib.lib")
    #pragma comment (lib, "../path/to/myotherlib.lib")
    Chaos, panic, pandemonium... My work here is done!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Including extra .cpp files visual2008
    By Cathalo in forum C++ Programming
    Replies: 9
    Last Post: 06-16-2009, 03:29 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Class files including other classes
    By combatdave in forum C++ Programming
    Replies: 7
    Last Post: 11-04-2006, 12:37 AM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  5. Reading a line including blanks
    By Ec4U2du in forum C++ Programming
    Replies: 4
    Last Post: 11-13-2002, 07:32 PM