Thread: libraries

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    libraries

    Is it possible for me to download ceratin libraries?

    I have the <curses.h> library included in my program but when i compile it (using dev c++) it doesnt recognise it. Where can i get it from? THankyou

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Usually you have to link to it when you compile, assuming it's included. Otherwise, get a linux variant of your choice and install it.
    Code:
    gcc -o myprog myprog.c -lncurses
    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    66
    cc -o myprog myprog.c -lncurses << thats what i use when im programming my program in UNIX but when i am at home i use dev c++ just wondered how i get the library for it?

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It probably doesn't have it. The curses library is a *nix library. Since it isn't a standard ANSI library, it doesn't have to be included, or in this case ported, to other operating systems and compilers. This would be similar to trying to use the Windows API in linux.

    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    66
    Ok thanks anyway.

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