Jump to content

GCC and auto-linking?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Guest_phirephly_*

Guest_phirephly_*
  • Guests
A few hours ago, I looked up how to auto-link in the GCC compilers, and I ended up on a Wikipedia page saying,

Quote

Most Windows compilers support auto-linking, while GCC does not support auto-linking.

Can someone explain to me why that is?

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Hi,

It appears to be a compiler feature specific to MSVC related compilers for compatibility, it was never intended to be designed for the GCC tool chains and remains unsupported in most other compilers.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
auto-linking assumes that ALL libraries exist in a known location. Windows can store that information in the Registry, which means MS tools can easily track that information down. Different *nix's store their libraries in different locations, and have different mechanisms for keeping track of where they are, updating them, etc. When your environment doesn't provide a consistent mechanism for providing all of this information, providing auto-linking suddenly becomes very, very challenging.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users