DialogBlocks and Kdevelop 3.0

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Sirius
Earned a small fee
Earned a small fee
Posts: 15
Joined: Tue Sep 07, 2004 3:18 am
Contact:

DialogBlocks and Kdevelop 3.0

Post by Sirius » Sun Nov 07, 2004 6:52 pm

I use Kdevelop 3.0 create a wxWidgets project named 'dbs_kde'-'Simple Hello wxWidgets Application' which is the only choice. After that I create a simple Frame (wxFrame) with DialogBlocks 1.76 and copy 'myFrame.h' and 'myFrame.cpp' into kdevelop project's src directory.

in dbs_kde.cpp (the main cpp for Kdevelop project), I moditified these lines:

[syntax="c"]
#include "myFrame.h"
...

dbs_kdeapp::OnInit() {
...
MyFrame *frame = new MyFrame ((wxFrame *) NULL, -1,
wxT( "Hello World" ),
wxPoint(50,50),
wxSize(450,340),
wxCAPTION|wxRESIZE_BORDER|wxCLOSE_BOX);
frame->Show(TRUE);
...
}
[/syntax]

But when I tried to 'Build project' it came out with this error.
/home/sirius/wx/dbs_kde/src/dbs_kde.cpp:37: undefined reference to MyFrame::MyFrame[in-charge](wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)'
Anyone have experience using DialogBlocks with Kdevelop 3.0? Can share your experience with me?

Thank you
OS: WinXP
wxMSW 2.5.2, VC 6.0

OS: Debian sarge
wxGTK 2.4.2, gcc 3.3.3

I like Linux and C++

McCabe
In need of some credit
In need of some credit
Posts: 7
Joined: Wed Sep 08, 2004 1:44 pm
Location: SE
Contact:

Post by McCabe » Wed Nov 10, 2004 8:53 am

This is a linking error, ie the linker does not find those symbols.

Did you add the source file to the kdevelop project and to the automake-manager so that it's compiled and linked into the code?

/Linus

Sirius
Earned a small fee
Earned a small fee
Posts: 15
Joined: Tue Sep 07, 2004 3:18 am
Contact:

Post by Sirius » Sat Nov 13, 2004 3:06 pm

Oh yes, I had missed this step, I just copy those files into '/src' directory and can't see any Setting/Option for add existing files into project. Do some search in www.kdevelop.org and found the solution.

For those who use KDevelop 3.0.x and faced this problem, this is the solution:
http://www.kdevelop.org:8080/phorum5/read.php?2,24952


Thank you McCabe.

:D
OS: WinXP
wxMSW 2.5.2, VC 6.0

OS: Debian sarge
wxGTK 2.4.2, gcc 3.3.3

I like Linux and C++

Post Reply