This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with static member variable in dynamic library


Hi Matze,

I recommend using g++ to compile and link, instead of just using g++ to compile, and trying to cobble together your own ld to link.

If you really, really, really want to use your own ld, first use g++ -v to link, and then note what g++ passes to ld, and make sure that you understand why g++ is passing the parameters it does, and when to use or not use them, and be aware that your ld is brittle in the sense that upgraded versions of GCC will likely break your custom ld.

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]