473,434 Members | 1,834 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,434 software developers and data experts.

Error: Unersolved external 'TestingLink::TestingLink()' reference from...

//my testing.h code

#ifndef TESTING_H
#define TESTING_H

#include <iostream.h>

class TestingLink
{
public:
TestingLink();

private:
int value, height;
};

#endif

=======================

//my testing.cpp code

#include <iostream.h>
#iclude "testing.h"

TestingLink::TestingLink()
{
value = 10;
height = 4;
}

=======================

//my main code
#include <iostream.h>
#include "testing.h"

int main()
{
TestingLink();
return 0;
}


=======================

When I start compiling the implementation file, i get this error:

Error: Unresolved external 'TestingLink::TestingLink()' referenced from C:\BCC55\Template\testing_link.obj

Is this Windows environment linking problem of C++?
If I lack binaries, lib, .a, or .o, what are those?
There is nothing special about this program, this is only a sample.
nevertheless, i can't still compile it.

Please, help me...
Jul 30 '07 #1
2 1376
Banfa
9,065 Expert Mod 8TB
Error: Unresolved external 'TestingLink::TestingLink()' referenced from C:\BCC55\Template\testing_link.obj

Is this Windows environment linking problem of C++?
Yes this is a link error, the function 'TestingLink::TestingLink() was not found in any of the objects or libraries you provided to the linker.

The most linkely cause is that you have accidentally forgotten to include testing.cpp into your project (assuming you are using an IDE) or that you have left testing.obj off the linker command (if you are compiling and linking by hand).
Jul 30 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
Also, why are you using iostream.h???

That is the pre-ANS C++ that has been obsolete for 10 years. (and it doesn;t work)

You should be using iostream.
Jul 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: humbads | last post by:
How can I trigger the default Apache 404 error from PHP? I don't want to specify a custom handler, I want the default handler. The reason is that I am using mod_rewrite with Apache for my site. ...
3
by: MSNews | last post by:
I get the following exception when calling Dns.GetHostName (from C#): An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An...
1
by: Matt | last post by:
HI I am using the following code in an SP, it seems like an ugly hack I have done to check if the BCP was working or not, I check the table it shold have filled instead of checking the error...
1
by: Romeo Disca | last post by:
Hello newsgroup, i'm new to xml - what's wrong with this piece code here? i have these two files: test.xml ---- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE a SYSTEM "test.ent"
2
by: eddie wang | last post by:
Hi, I am making changes to an Access application that was written by a previous coworker. All I am tring to do is to get the text from a text box called txtDate, and assign it to a string...
3
by: Jackie | last post by:
Dear all, I want to have a list of external function calls and variables from a C source file. For example, a C file may use abs(), strcmp(), strncpy() from standard liberary. Usually, there...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
1
by: darrel | last post by:
hi there can anyone tell me wats wrong with my program, its a like this i have a database called "dbTimescheduling", with a field with a name of "Time",,, for now i want to do is to be able to access...
3
by: karpalmera | last post by:
We have checked the status of listener and it's okay. ORAORD7, TNSG473 & G4G407 are okay. Still, we are encountering this problem when trying to connect to DB2....
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
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,...
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...
1
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.