Thread: Libraries

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Libraries

    How would I know or check to see if I have the correct libraries installed to access certain header files, classes and functions. For example, I try to use GDI+ to display an image, the page from msdn told me I need gdiplus.lib imported and include gdiplus.h. Whenever I #include gdiplus.h I get an error message saying that file does not exist. How do I check and import the library if necessary. For future reference, how do I check for other libraries and functions as well???????

    Thanks
    Kendal

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    That would be compiler specific in both cases. If you are using, eg.
    msvc6, you would set the paths in Tools->Options->Directories.

    It would be a very helpful if you could say what compiler you are using.

    If you have downloaded and installed the gdi+ libs/headers in your 'normal' include/lib directories then you should not have any problems; just #include <gdiplus.h> and make sure you link with the gdiplus.lib

    >>For future reference, how do I check for other libraries and functions as well???????<<

    You look in the 'include' and 'lib' directories of your compiler installation and see whether or not the files exist. For functions - look in the relevant header file.

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You need to go here and download the core SDK to get the GDI+ headers, libraries and DLL's.

    gg

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Thank you

    Thank you for the replys
    They were helpful. I am installing the core SDK right now. I don't believe I had the SDK. Once again thank you.

    Kendal.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  2. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  3. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  4. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM
  5. QT and external libraries
    By Quacker in forum Linux Programming
    Replies: 1
    Last Post: 04-08-2003, 07:02 AM