[Bug 1200527] Re: compiler flags order bug

Dmitrijs Ledkovs launchpad at surgut.co.uk
Fri Jul 12 10:20:15 UTC 2013


I believe this is an intentional linker change.
Libraries that provide a symbol, must come after said symbol is used.

http://wiki.debian.org/ToolChain/DSOLinking

http://stackoverflow.com/questions/45135/linker-order-gcc

** Changed in: gcc-4.6 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1200527

Title:
  compiler flags order bug

Status in “gcc-4.6” package in Ubuntu:
  Invalid

Bug description:
  When I compile a open source software
  "2HDMC"(http://2hdmc.hepforge.org/) on my computer,  it occurs
  "SM.cpp:(.text+0x4d8): undefined reference to `gsl_matrix_set'".

  platform: Ubuntu12.04LST

  The compiler:  g++ version 4.6.3)

  flags :   -lgsl -lgslcblas -Llib -l2HDMC

  
  when I use flags:  -Llib -l2HDMC   -lgsl -lgslcblas, it works!

  when I user g++-4.4 , the makefile also works!

  So, it must be wrong on the flag orders of g++-4.6.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1200527/+subscriptions




More information about the foundations-bugs mailing list