Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: twentytortures on March 31, 2007, 12:12:19 am

Title: Allegro wont link
Post by: twentytortures on March 31, 2007, 12:12:19 am
This is starting to drive me nuts. I've linked to the .a's for allegro but I get this error:

Code
Compiling: main.cpp
cc1plus.exe: error: unrecognized command line option "-lalleg"
mingw32-g++.exe: -lalleg: linker input file unused because linking not done
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Am I missing something, or do the computer gods just hate me? I'm sure it's probably an easy fix, but, I'm an idiot.
Title: Re: Allegro wont link
Post by: TDragon on March 31, 2007, 12:28:48 am
Code
Compiling: main.cpp
cc1plus.exe: error: unrecognized command line option "-lalleg"
mingw32-g++.exe: -lalleg: linker input file unused because linking not done
It appears as though -lalleg is being passed at compile time rather than link time. If you have "-lalleg" as an additional compiler option, this is the problem; remove it, and add "alleg" to your link libraries (and make sure that the directory containing liballeg.a is in your linker directories).
Title: Re: Allegro wont link
Post by: twentytortures on March 31, 2007, 03:34:46 am
I already had everything set up like you said.  :-/
Title: Re: Allegro wont link
Post by: TDragon on March 31, 2007, 04:21:28 am
I already had everything set up like you said.  :-/
In that case, it would help if you enabled full command line logging. (Settings->Compiler and debugger->Global compiler settings->Other settings->Compiler logging)
Please post the entire output from the Build log tab.
Title: Re: Allegro wont link
Post by: bluekid on April 04, 2007, 08:27:28 am
search
http://ceniza.cenizasoft.cjb.net/mingw3.htm
http://forums.codeblocks.org/index.php/topic,2587.0.html
http://forums.codeblocks.org/index.php/topic,2558.0.html
http://forums.codeblocks.org/index.php/topic,2558.0.html
Title: Re: Allegro wont link
Post by: Ceniza on April 04, 2007, 05:08:14 pm
I think http://gda.utp.edu.co/~ceniza/?page=mingw3 is a better choice for the first link (the one bluekid posted has really bad uptime issues).

Bah, moved it here (http://ceniza666.googlepages.com/ceniza%27swebsite-mingw).