473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Lniker Error while compilation.

hi,
i have implemented a base class and a derived class as follows
base : beziertriangle .h and beziertriangle .cpp
derived: PNpatch.h and PNpatch.cpp

when i compile them it works out fine , but when i create an instance
of the derived class in its main function, it gives my a linker error
of the form

(i'm using the borland complier)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
PNpatch.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'beziertriangle::~beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
Error: Unresolved external 'beziertriangle::beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
i'm not really sure what the problem is...

thanks
vivek

Jul 22 '05 #1
4 1421
vi*****@yahoo.com wrote:
i have implemented a base class and a derived class as follows
base : beziertriangle .h and beziertriangle .cpp
derived: PNpatch.h and PNpatch.cpp

when i compile them it works out fine , but when i create an instance
of the derived class in its main function, it gives my a linker error
of the form

(i'm using the borland complier)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
PNpatch.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'beziertriangle::~beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
Error: Unresolved external 'beziertriangle::beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
i'm not really sure what the problem is...


Make sure you include 'beziertriangle.obj' when linking. Also, consider
asking linking and other project management questions in the compiler NG.

V
Jul 22 '05 #2

<vi*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
hi,
i have implemented a base class and a derived class as follows
base : beziertriangle .h and beziertriangle .cpp
derived: PNpatch.h and PNpatch.cpp

when i compile them it works out fine , but when i create an instance
of the derived class in its main function, it gives my a linker error
of the form

(i'm using the borland complier)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
PNpatch.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'beziertriangle::~beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
Error: Unresolved external 'beziertriangle::beziertriangle()'
referenced from C:\CPLUS\PNPATCH.OBJ
i'm not really sure what the problem is...


It's impossible for anyone to say for sure without seeing
your code. But it looks like you've failed to provide
implementations for your 'beziertriangle' constructor
and destructor.

Post the mimimum amount of code that produces the errors.

-Mike
Jul 22 '05 #3
hi,
the constructor and destructor were in the beziertriangle.cpp file,
when i moved them to the .h file the compliation worked just fine...
so i'm guesing Victor was right and i need to include the obj files...
thanks for the input guys
vivek

Jul 22 '05 #4
"slashman" <vi*****@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
hi,
the constructor and destructor were in the beziertriangle.cpp file,
when i moved them to the .h file the compliation worked just fine...
so i'm guesing Victor was right and i need to include the obj files...
Yes, it appears you didn't give your linker all the inputs
it needed.
thanks for the input guys


You're welcome.

-Mike
Jul 22 '05 #5

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

Similar topics

0
by: ex laguna | last post by:
I have run into this problem below with py2exe version 0.5.0 and python 2.3.3. Does anyone know a solution or workaround for this? Thanks much! ## Begin of test.py import shelve f =...
10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
6
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application....
0
by: James Zhuo | last post by:
hi all I changed the name of the class LoginPage to a different name "LoginPageOne" But the same error gets generated with the Wiliam.Request.LoginPageOne. That pretty much leaves me clueless...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
6
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax...
3
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
0
by: Stimp | last post by:
I've created an aspx page called HistoryManage.aspx. The page works fine on my local machine but when I load it off the web I get the following strange error... Compilation Error...
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.