User forums > Using Code::Blocks
Allegro wont link
twentytortures:
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
--- End code ---
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.
TDragon:
--- Quote from: twentytortures on March 31, 2007, 12:12:19 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
--- End code ---
--- End quote ---
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).
twentytortures:
I already had everything set up like you said. :-/
TDragon:
--- Quote from: twentytortures on March 31, 2007, 03:34:46 am ---I already had everything set up like you said. :-/
--- End quote ---
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.
bluekid:
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
Navigation
[0] Message Index
[#] Next page
Go to full version