X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: G77, libg2c and a linking problem Date: Tue, 19 Sep 2006 15:08:23 +0100 Message-ID: <013601c6dbf5$1175a170$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 15 September 2006 22:52, Angelo Graziosi wrote: > I have applied what you suggested since then and have built happily many > applications with G77, GCC 3.4.4-2 (CERNLIB, ROOT, Emacs-cvs...). > > Now I have discovered these strange linking problems trying to change > somethings in the procedure to build Cernlib and have reproduced that > simple test case. > > In these hours I have found the same behavior on Linux Kubuntu with > G77-3.4.6. Can we then assume that the cernlib build process is doing something unneccessary or unusual or incorrect? > In any case it sound 'strange' that moving '-s' or '-o hello' on command > line changes the result of linking libg2c. Well, add '-v' to the command lines you've been demonstrating, and see what's actually getting passed to the linker. It should all become clear in terms of the linker's requirement that undefined references must always come in objects earlier than the symbols that satisfy those references. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/