This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/13449] New: Command Line option -L is dependant on -o
- From: "jamesl at appliedminds dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2003 16:35:44 -0000
- Subject: [Bug other/13449] New: Command Line option -L is dependant on -o
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The -L argument effects seem to change depending on whether -o is specified.
For instance:
g++ -Wall -O2 -g -I/usr/local/include -L/usr/local/lib -lMagick -lqt tileImage.cc
Links against my ImageMagick library in /usr/lib still.
However,
g++ -Wall -O2 -g -I/usr/local/include -L/usr/local/lib/ -o tileImage -lMagick -lqt tileImage.cc
links correctly against my ImageMagick library in /usr/local/lib
Looks like theres a weird edge case here.
--
Summary: Command Line option -L is dependant on -o
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jamesl at appliedminds dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13449