Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » undefined reference(small project won't compile)
undefined reference [message #1859633] Tue, 20 June 2023 22:13
sydney faria is currently offline sydney fariaFriend
Messages: 54
Registered: March 2013
Member
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 110 times)
Previous Topic:github
Next Topic:WCH IDE MounRiver Studio is violating Open Source Code.
Goto Forum:
  


Current Time: Sat Jan 18 05:28:25 GMT 2025

Powered by FUDForum. Page generated in 0.02916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top