Registered Member
|
Hi,
I've made a new KDevelop c++ project with a main.cpp file. Then I selected 'create class' and added a simple class. When I select 'Build selected' I get 'undefined refence to myclass::myclass()'. What do I need to do to tell KDevelop to compile the class together with the executable? My code is inserted below. Thx in advance, Sunaj main.cpp
myclass.h
|
Registered Member
|
It's what the error says. You have not defined the constructor you declared.
Add
to myclass.cpp |
Registered Member
|
damn - I must be growing blind. Thx.
'The gap between theory and practice is not as wide in theory as it is in practice' |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell