- Joined
- 11/5/14
- Messages
- 294
- Points
- 53
Hi,
I am trying to model points in the \({R}^{2}\) in a C++ program - chapter 4 of Introduction to C++ for financial engineers. I am working on Ubuntu - gc++ compiler with Eclipse as the IDE.
While building the project, the compilation works good. The linker throws an undefined reference error.
Building target: PointDemo
Invoking: GCC C++ Linker
g++ -o "PointDemo" ./Point.o ./TestPoint.o
./Point.o: In function `Point:: Point()':
/home/quasar/workspace/PointDemo/Debug/../Point.cpp:14: undefined reference to `vtable for Point'
Do the arguments to g++ -o need to supplied in a specific order?
I apologize that the question is not pertaining to C++ syntax as such, but rather a configuration issue. I googled, but I can't resolve the error.
I am trying to model points in the \({R}^{2}\) in a C++ program - chapter 4 of Introduction to C++ for financial engineers. I am working on Ubuntu - gc++ compiler with Eclipse as the IDE.
While building the project, the compilation works good. The linker throws an undefined reference error.
Building target: PointDemo
Invoking: GCC C++ Linker
g++ -o "PointDemo" ./Point.o ./TestPoint.o
./Point.o: In function `Point:: Point()':
/home/quasar/workspace/PointDemo/Debug/../Point.cpp:14: undefined reference to `vtable for Point'
Do the arguments to g++ -o need to supplied in a specific order?
I apologize that the question is not pertaining to C++ syntax as such, but rather a configuration issue. I googled, but I can't resolve the error.
Last edited: