Thread: Allegro Problem

  1. #1
    Xterria
    Guest

    Angry Allegro Problem

    When I try to compile Allegro using the command line, i type
    gpp test.cpp -o test.exe -lalleg
    and an error message comes up saying
    'I'm the big fat dumb compiler and I can't find -lalleg'
    I did everything the Readme file told me to do. Could anyone help me please?

    P.S I'm using DJGPP

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    haha, are you serious? i'll have to try that... if you aren't then shame on you! hehe...

    have you successfully compiled allegro and put the output (alleg.a, or something like that) in your djgpp subdirectories? (i forget at the moment which one it should be...) go to the directory where you unzipped allegro and type make, which uses the makefile and compiles the whole shibazz... _then_ use the command you'd use to link allegro to your source code...

    other than that, you'd have to be more specific, what other steps did you do to obtain such a [strange and funny] error?

    hth!
    hasafraggin shizigishin oppashigger...

  3. #3
    Xterria
    Guest

    Angry Another

    OK...I got it so that it started to compile, but now it can't find
    -lstdcxx

  4. #4
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459

    ...

    check that you have the latest DJGPP, i think it's v2.0 with gcc 2.95... also, check your DJGPP installation as well... can you get other programs to successfully compile with it? those that link [automatically] with -lstdcxx? perhaps you should just start from scratch, your installations, that is... because then you'd know that everything was clean. it _should_ compile. when i got mine to do so, eventually, it had some strange warnings [a lot of them]... but it did in the end compile. granted, i might have an incomplete or unstable build of allegro, but nonetheless i use it... [i'm still learning more about it...] makes you wonder whether or not Shawn made it so that no warnings should have occured. ah well...

    so... redo your installations, unless there's other stuff you can tell me... try to find stdcxx.a in your DJGPP zips and replace it, if you don't want to have to reset the environment variables and what not when you reinstall...

    hth...

    oh... www.delorie.com/djgpp , of course...
    hasafraggin shizigishin oppashigger...

  5. #5
    Xterria
    Guest

    Angry

    I only tried that 500 times(no offense)

  6. #6
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    well then i don't know what else to tell you... i do know, though, that it does compile and link just fine... make sure you dl-ed all the files in your DJGPP package. y'know what, if you can't get your answer here then you should've already figured to go somewhere else... my... and DJGPP does have quite a good user community...

    fact is, if you did everything like it should have been, it should have worked... i don't know what else to tell you...
    hasafraggin shizigishin oppashigger...

  7. #7
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    It's a long shot, try a compile with gpp.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  2. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  3. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM
  4. problem in allegro with sprite leaving trail
    By Leeman_s in forum C++ Programming
    Replies: 18
    Last Post: 09-13-2002, 03:04 PM
  5. Problem declaring struct in allegro
    By bobish in forum Game Programming
    Replies: 7
    Last Post: 03-08-2002, 09:26 AM