Thread: bad libraries or what?

  1. #1
    Registered User
    Join Date
    Jun 2002

    bad libraries or what?

    when I try to compile a DEV-C++ example or an allegro for DEV-C++ example the compiler says that the linker cant find the functions the program requires, but I have the allegro and the dev-c++ installed perfectly, so... why cant the linker find that functions??

    ---Programming is like roaming, you never know where you'll end at------

    If 'here' is pronounced as 'hear', why 'there' isnt pronounced as 'dear'??

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Are you including the libraries in your project? I do not know how to do it in dev-C++, but you need to do it to have them included in your program.

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  3. #3
    Registered User foniks munkee's Avatar
    Join Date
    Nov 2001
    Just remember that including the header file does not automatically include the actual library. You have to specify the libraries that you wish to link.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Waterloo, Texas
    For instance: if you are trying to link libwinmm.a, you would go to Compiler->Options, check-mark the box that says "include the following compiler commands" or something, and type:


    for libwsock32.a, you would type:


    ...and so on...
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
        return std::pow
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  2. Poker bad beats
    By PJYelton in forum A Brief History of
    Replies: 21
    Last Post: 01-15-2005, 11:42 PM
  3. How bad is bad
    By caroundw5h in forum A Brief History of
    Replies: 21
    Last Post: 11-12-2004, 09:26 AM
  4. Shocking(kind of)
    By Shadow in forum A Brief History of
    Replies: 25
    Last Post: 12-10-2002, 08:52 PM
  5. good news and bad news
    By Garfield in forum A Brief History of
    Replies: 25
    Last Post: 10-27-2001, 07:31 AM