X-Spam-Check-By: sourceware.org Message-ID: <20070116101800.84984.qmail@web53610.mail.yahoo.com> X-YMail-OSG: j118TZcVM1lFw_xV08_S3VawtW_K2hNqaLs6rcv.rx4O3LOYdIZtRBOUIYHar46Qzy138lSGrVQdPfJ2c28ahMUxuEHNsZTMoW5cYzRLm6LLYfRUJRJRqUoQOCbnonboVrXZmKaZk.4IyHX3ywQoTJ7IKxv1DFLvn0EKDqPEuYXw1ZvPu3fwAzcacm4i Date: Tue, 16 Jan 2007 02:18:00 -0800 (PST) From: George Subject: RE: Link errors related to vtable To: cygwin AT cygwin DOT com In-Reply-To: <377685.78032.qm@web53607.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 Or, since I am suspecting this might be a problem with the gnu c++ compiler ver 3.4.4 which is there in the cygwin 1.5.23 is there a way that I can download the 4.1 version of the c++ compiler which might solve the problem? thanks --- George wrote: > Hi Dave, > I am sorry as I am new to c++ I need more help in > doing what you said is required. > > thanks > > --- Dave Korn wrote: > > > On 10 January 2007 13:04, Eric Blake wrote: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > According to George on 1/9/2007 11:02 PM: > > >> Hi, > > >> I am getting link errors like below when I > > compile my > > >> code(systemc) which is on cygwin 1.5.23 with > gcc > > >> 3.4.4 > > >> (systemc is a c++ class library) > > > > > > No wonder. C++ code MUST be compiled with g++, > > not gcc (unless you REALLY > > > know what you are doing). > > > > I guess George does, since... > > > > On 10 January 2007 06:03, George wrote: > > > > > > > > ------------------------------------------------------- > > > g++ -O3 -Wall -I. -I.. -I../../../include -L. > -L.. > > > -L../../../lib-linux -o run.x packet.o > > > packet_generator.o hub.o main.o -lsystemc -lm > > 2>&1 | > > > c++filt > > > > > > main.o:main.cpp:(.text$_ZN11packet_fifoC1EN7sc_core14sc_module_nameE[packet_fi > > fo::packet_fifo(sc_core::sc_module_name)]+0x91): > > > undefined reference to `VTT for packet_fifo' > > > > George, this will be hard for me to diagnose > > without an STC. The first > > thing you should do is read "6.4 Vague Linkage" in > > the gcc manual which > > explains how and when gcc decides to emit the > vtable > > for a class; then try > > running nm over the object files and seeing if > it's > > there in the expected one > > or not. Maybe there's a link-ordering problem or > > something. > > > > If you can produce an STC based only on snippets > > of main and packet_fifo I'd > > be able to figure it out in more detail. > > > > 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/ > > > > > > > > > > ____________________________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! > Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > > -- > 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/ > > ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 -- 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/