Thread: New Libraries

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    545

    New Libraries

    There are a couple of libraries that I have found but I don't know how to get them to work. How do I do this?

    Compiler: Dev-C++ 4

    O.S: Win XP Home

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    they all have slightly different setup requirements. view the readme file that comes with the library's documentation for the specific installation procedures.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    If you're planning on installing native *nix libraries which have no DevPaks made for them yet... well, you're on your own
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    No there was a library...paintlib or somerthing that looked useful and I wanted to know how to put it ont Dev_C++

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by bumfluff
    No there was a library...paintlib or somerthing that looked useful and I wanted to know how to put it ont Dev_C++
    Don't mess with your standard library directories. Just save the library in the directory that your source code is in and include it with double quotes
    Code:
    #include "paintlib.h"  // Assuming that's the library name
    Sent from my iPadŽ

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    So can I do that with any library? say allegro and the such like?

  7. #7
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Well kinda. You have to make sure that you link the libs for the library. If you need a prebuilt allegro(latest) lib send me a pm, I can build one for you.
    Woop?

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