Author Topic: Allegro wont link  (Read 7137 times)

twentytortures

  • Guest
Allegro wont link
« 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.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Allegro wont link
« Reply #1 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).
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

twentytortures

  • Guest
Re: Allegro wont link
« Reply #2 on: March 31, 2007, 03:34:46 am »
I already had everything set up like you said.  :-/

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Allegro wont link
« Reply #3 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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
What is blue ? Blue is the invisible becoming visible.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Allegro wont link
« Reply #5 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.
« Last Edit: April 04, 2007, 08:28:31 pm by Ceniza »