News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Allegro wont link

Started by twentytortures, March 31, 2007, 12:12:19 AM

Previous topic - Next topic

twentytortures

This is starting to drive me nuts. I've linked to the .a's for allegro but I get this error:

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.

TDragon

Quote from: twentytortures on March 31, 2007, 12:12:19 AM
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).
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

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.  :-/
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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)


Ceniza

#5
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.