undefined reference [message #1859633] |
Tue, 20 June 2023 18:13 |
Eclipse User |
|
|
|
I created this small project from a C++ design pattern book. There isn't much to it: a couple of classes and a couple of lines of code. I attempted to construct i(10) explicitly. and used a couple of lines of code, cout, to show some results. Line #2 won't work so I commented it out. The other lines that are commented out were work around for the problem line #2. The line constructing the object i always gives the following error: 'undefined reference to `Integer::Integer(int)' !!!!! The class is clearly defined in the above code and the constructor is also clearly defined! This has to be something really silly, but I cannot see it. A little help here would be most appreciated.
syd / wt1v
Attachment: main.cpp
(Size: 0.80KB, Downloaded 139 times)
|
|
|
Powered by
FUDForum. Page generated in 0.03873 seconds