473,608 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help on this error

Neo
I have a setup like
class A {
virtual void func1()=0;
.....
}
class B {
virtual void func2()=0;
....
}
class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
....
}

where below class C is "bidir_chan "

g++ -O3 -Wall -I. -I.. -I../../../include -L. -L.. -L../../../lib-linux
-o run.x bidir_chan.o addr_generator. o main.o -lsystemc -lm 2>&1 |
c++filt
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x20): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x24): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x50): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x54): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
collect2: ld returned 1 exit status
what is this THUNK thing? I am using cygwin g++ ver 3.4.4-2

thanks for any hep,
Neo

Dec 6 '06 #1
6 4307
On Dec 6, 11:14 am, "Neo" <zingafri...@ya hoo.comwrote:
I have a setup like
class A {
virtual void func1()=0;
....}

class B {
virtual void func2()=0;
...}

class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
...

}
where below class C is "bidir_chan "

Are you trying to instanciate C? You can't instanciate classes with
pure virtual functions. Either remove the '=0' from the method
declarations in class C and later provide a definition, or create a new
class D deriving from C which implements func1() and func2().

--
Erik Wikström

Dec 6 '06 #2

"""Neo ÐÉÓÁÌ(Á):
"""
I have a setup like
class A {
virtual void func1()=0;
....
}
class B {
virtual void func2()=0;
...
}
class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
...
}

where below class C is "bidir_chan "

g++ -O3 -Wall -I. -I.. -I../../../include -L. -L.. -L../../../lib-linux
-o run.x bidir_chan.o addr_generator. o main.o -lsystemc -lm 2>&1 |
c++filt
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x20): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x24): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x50): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x54): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
collect2: ld returned 1 exit status
what is this THUNK thing? I am using cygwin g++ ver 3.4.4-2

thanks for any hep,
Neo

http://magegame.ru/?rf=626f6764616e

Dec 6 '06 #3

"""Neo ÐÉÓÁÌ(Á):
"""
I have a setup like
class A {
virtual void func1()=0;
....
}
class B {
virtual void func2()=0;
...
}
class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
...
}

where below class C is "bidir_chan "

g++ -O3 -Wall -I. -I.. -I../../../include -L. -L.. -L../../../lib-linux
-o run.x bidir_chan.o addr_generator. o main.o -lsystemc -lm 2>&1 |
c++filt
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x20): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x24): undefined reference to `bidir_chan::~b idir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x50): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
bidir_chan.o:bi dir_chan.cpp:(. rdata$_ZTV10bid ir_chan[vtable for
bidir_chan]+0x54): undefined reference to `non-virtual thunk to
bidir_chan::~bi dir_chan()'
collect2: ld returned 1 exit status
what is this THUNK thing? I am using cygwin g++ ver 3.4.4-2

thanks for any hep,
Neo

http://magegame.ru/?rf=626f6764616e

Dec 6 '06 #4

"bogdan" <bo****@birulev o.netwrote in message
news:11******** **************@ 16g2000cwy.goog legroups.com...
>

http://magegame.ru/?rf=626f6764616e
If you've got something to say, say it. I'm not about to click on an
unknown link.
Dec 6 '06 #5
Neo
Are you trying to instanciate C? You can't instanciate classes with
pure virtual functions. Either remove the '=0' from the method
declarations in class C and later provide a definition, or create a new
class D deriving from C which implements func1() and func2().

--
Erik Wikström
I am sorry, there is a correction, I have another class D(which is
bidir_chan) which implements those functions of class C and is inturn
instantiated.

Dec 7 '06 #6

"Neo" <zi*********@ya hoo.comwrote in message
news:11******** *************@7 9g2000cws.googl egroups.com...
Are you trying to instanciate C? You can't instanciate classes with
pure virtual functions. Either remove the '=0' from the method
declarations in class C and later provide a definition, or create a new
class D deriving from C which implements func1() and func2().

--
Erik Wikstrvm
I am sorry, there is a correction, I have another class D(which is
bidir_chan) which implements those functions of class C and is inturn
instantiated.
If you're still having a problem, then show the actual code you're referring
to. We can't help you resolve the problem if we're only going by a vague
description.

-Howard
Dec 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6320
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334, column 13: there is no attribute "SRC" <bgsound src="C:\My Documents\zingwent.mids"> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is...
8
1999
by: Bshealey786 | last post by:
Okay im doing my final project for my first computer science class(its my major, so it will be my first of many), but anyway im a beginner so im not to great with C++ yet. Anyway this is the error msg that im getting: "Error executing cl.exe" this is the code that I have, but I know whats causing it, ill just show you the whole thing first though //file: Quadratic
3
2664
by: Drewdog | last post by:
I am getting some error messages which I can't figure out their meaning. I have the code setup, I think it's correct but it doesn't work. My goal is to get this program to read from a data file and basically put it into an output file that I can access as a test file. Here is my header file: #include <iostream.h> #include <fstream.h> #include <iomanip.h>
1
2160
by: Peggy Go | last post by:
Hi! I've downloaded postgreqsql-base-7.2.4.tar.gz but it says in the readme file that "This distribution also contains several language bindings, including C, Perl, Python, and Tcl, as well as a JDBC driver. The ODBC and C++ interfaces have been moved to the PostgreSQL Projects Web Site at http://gborg.postgresql.org for separate maintenance. "
8
477
by: frank | last post by:
Below is some code for doing and insert into one of my tables. The inserts do not work because a duplicate key exists, which I want to happen. The problem is, I cannot get access to return an error for this condition. What can I do to get access to return an error on my query? Thanks
2
1982
by: CSDunn | last post by:
Hello, I need some assistance with error handling in an Access 2003 Project form. The project is has a data source connection to a SQL Server 2000 database. The main form is named ‘frmSelectByTest', and its subform's ‘Name' and ‘Source Object' properties are ‘frmSelectByTestSub'. The ‘Default View' on the main form is ‘Single Form', and on the sub form is ‘Continuous Forms'. The users select the name of a test (uniquely identified by a...
106
6412
by: xtra | last post by:
Hi Folk I have about 1000 procedures in my project. Many, many of them are along the lines of function myfuntion () as boolean on error goto er '- Dim Dbs as dao.database Dim Rst as dao.recordset
5
8911
by: Greg Collins [MVP] | last post by:
I have an ASP.NET page that uses a tag: <asp:Xml id="foo" runat="server" DocumentSource="rss.xml" TransformSource="rss20.xsl" /> This creates a Web page from an XML file that was generated by InfoPath. By default InfoPath inline's their images in base64 encoding. These need to be extracted out to be displayed. I've got my XSL set up to be able to pull out images and manage them separately. According to Microsoft, they need to be decoded...
12
5319
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded the custom employee class and have built it as a separate library (employee.dll). This employee.dll is being referenced by both the web service and the windows application. I face the following problem when I send this class to the webservice.
5
7945
by: Chuck Anderson | last post by:
I run Apache 2.0.55, and Php (both 4.4.1 and 5.2.5) on my home PC (Windows XP). One of the scripts that I run daily needs to access a secure URL (https://..............). When I am running Php4, it can open the file. However, when I run Php5 I (now) get this error message: "Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?" This is new. Last time I messed with this, I merely got:
0
8059
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8000
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8470
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6815
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5475
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3960
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1328
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.