Keyboard Inputs

This is a discussion on Keyboard Inputs within the C Programming forums, part of the General Programming Boards category; i never used dev c++ so i dont know how to download libraries for that lol..will have to have a ...

  1. #16
    Registered User
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    10
    i never used dev c++ so i dont know how to download libraries for that lol..will have to have a look

  2. #17
    Registered User
    Join Date
    Jan 2008
    Posts
    287
    First off, I would suggest dropping this notion that you are obtaining libraries for Dev C++. Dev C++ is an IDE (integrated development environment). The whole point of an IDE is to be the nice pretty interface that sits on top of a compiler.

    The compiler that you are using is most likely the MinGW compiler. You will need to obtain libraries compatible with the MinGW compiler, and then when you are compiling a project that uses those libraries, you must tell the compiler where the libraries are and where the necessary include files are. Usually the IDE will provide you a nice graphical way to specify this (probably in the project settings).

    So, lets say you download the PDCurses library. You will recieve some header files, and some DLL's (or .lib / .a files). Lets say you put your header files in C:\pdcurses\include\ and the DLL's / .libs / .a files in C:\pdcurses\lib\ . (This naming convention is pretty common).

    You now need to look in your project settings and add the C:\pdcurses\include\ directory to the project include path. Likewise, you'll need to add C:\pdcurses\lib\ to the library path. You then need to tell the compiler that you want to link the pdcurses library (and it will be able to find out where it is because you added it to the library path).

    I can't tell you specifically how to do this in Dev C++, but if you were compiling on the commandline you would type: gcc -I "C:\pdcurses\include" main.c -L "C:\pdcurses\lib" -lcurses, or something similar.

  3. #18
    Registered User
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    10
    where n how can i download libraries for dev c ++?

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Keyboard port using other that a keyboard
    By antoinelac in forum C++ Programming
    Replies: 4
    Last Post: 06-12-2008, 02:46 PM
  2. need help for reading two keyboard inputs
    By Diablo02 in forum C# Programming
    Replies: 12
    Last Post: 12-06-2007, 01:21 PM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  4. Child window cant receive keyboard inputs
    By Raison in forum Windows Programming
    Replies: 2
    Last Post: 11-21-2004, 08:46 AM
  5. Game Design Topic #2 - Keyboard or Mouse?
    By TechWins in forum Game Programming
    Replies: 4
    Last Post: 10-08-2002, 03:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21