- can anyone help me with these error message that generated by VC++
- Posted by Martin on October 22nd, 2003
Compiling...
Contact.cpp
Motion.cpp
Generating Code...
Linking...
Contact.obj : error LNK2001: unresolved external symbol "public:
__thiscall Sensor::Sensor(void)" (??0Sensor@@QAE@XZ)
Monitoring.obj : error LNK2001: unresolved external symbol "public:
__thiscall Sensor::Sensor(void)" (??0Sensor@@QAE@XZ)
Motion.obj : error LNK2001: unresolved external symbol "public:
__thiscall Sensor::Sensor(void)" (??0Sensor@@QAE@XZ)
Vibration.obj : error LNK2001: unresolved external symbol "public:
__thiscall Sensor::Sensor(void)" (??0Sensor@@QAE@XZ)
Debug/Alarm_Project.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
- Posted by Noah Roberts on October 22nd, 2003
Martin wrote:
I would guess that Sensor is a class used in these .cpp files and it is
not being linked in with the executable.
NR
--
Noah Roberts
- "If you are not outraged, you are not paying attention."
- Posted by Programmer Dude on October 22nd, 2003
Martin wrote:
All are the constructor for Sensor. Did you declare a ctor and
not provide an implementation?
e.g.
====
class Sensor
{
// ...blah, blah, blah...
Sensor (); // <-- if you declare a ctor...
};
Sensor::Sensor () // <-- ...you must provide a...
{
// ...ctor implementation!
}
--
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|___ ____________________|
- Posted by Martin on October 23rd, 2003
Programmer Dude <Chris@Sonnack.com> wrote in message news:<3F969FA4.9508033C@Sonnack.com>...
Thanks Programmer Dude
That solved my problem!!
Cheers,
Martin
- Posted by Programmer Dude on October 23rd, 2003
Martin wrote:
Cool!
--
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|___ ____________________|