wxCTB issues...

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
nightz13
Experienced Solver
Experienced Solver
Posts: 52
Joined: Tue Nov 08, 2005 3:13 pm

wxCTB issues...

Post by nightz13 » Fri Nov 11, 2005 3:30 pm

Hello,

Trying to get wxCTB working with wx-DevCpp.
I used the DevPak that NinjaNL provided in another thread. He stated it's not 100% tested. Has anyone had issues with this method of installing wxCTB. It appears to have added wxlibctb.a to the libraries. Do I need to do anything else as far as install is concerned?

I did add -lwxCtb to my linker parameters.

My errors are the following:
[Linker error] undefined reference to `[email protected]'
[Linker error] undefined reference to `[email protected]'
[Linker error] undefined reference to `[email protected]'
[Linker error] undefined reference to `[email protected]'
ld returned 1 exit status
C:\Dev-Cpp\Projects\pro1\Makefile.win [Build Error] [Project1.exe] Error 1

My Code:

Code: Select all

#include <wx/ctb/getopt.h>
#include <wx/ctb/serport.h>
#include <wx/ctb/timer.h> 


#include "Project1App.h"
#include "Project1Frm.h"

IMPLEMENT_APP(Project1FrmApp)

bool Project1FrmApp::OnInit()
{
    Project1Frm *myFrame = new  Project1Frm(NULL);
    SetTopWindow(myFrame);
    
    wxSerialPort com;
    com.Open(wxCOM1,NULL); 
    
    myFrame->Show(TRUE);		
    return TRUE;
}
So far all the information I have found searching through threads has been very helpfull. Any further assistance would be great.
Also, I'm looking for some sample code for RS-232 Rx and Tx routines using wxCTB. So far, I haven't found much on how to implement the functions.

Thanks,
-Rocko

nightz13
Experienced Solver
Experienced Solver
Posts: 52
Joined: Tue Nov 08, 2005 3:13 pm

Post by nightz13 » Fri Nov 11, 2005 3:59 pm

All,
After investigating the sample project that seems to compile fine, I noticed it had this line in the linker parameters:

-lwinmm

I added that to my project and my errors all went away.
So, what is -lwinmm?

Still looking for more sample code and any issues with the DevPak.

Thanks,
-Rocko

benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Sun Nov 13, 2005 2:20 pm

winmm.dll is a module for the Windows Multimedia API, which contains low-level audio and joystick functions.

napalm_death
In need of some credit
In need of some credit
Posts: 8
Joined: Fri Jun 02, 2006 4:37 am

i need help using wxctb

Post by napalm_death » Wed Jun 07, 2006 6:23 am

hello,

im trying to get wxctb working in with sample programs

i downloaded this http://home.wanadoo.nl/m.nealon/wxCtb.DevPak and used a -lwinmm in the linker command.

Code: Select all

#include <C:\Dev-Cpp\include\wx\ctb\getopt.h> 
#include <C:\Dev-Cpp\include\wx\ctb\serport.h> 
#include <C:\Dev-Cpp\include\wx\ctb\timer.h>

#include "Project1App.h"
#include "Project1Frm.h"

IMPLEMENT_APP(Project1FrmApp)

bool Project1FrmApp::OnInit()
{
    Project1Frm* frame = new Project1Frm(NULL);
    SetTopWindow(frame);

    wxSerialPort com; 
    com.Open(wxCOM1,NULL);    
    
    frame->Show(true);		
    return true;
}
 
int Project1FrmApp::OnExit()
{
	return 0;
}

the compiler gives error message:
[Linker error] undefined reference to `wxSerialPort::wxSerialPort()'
[Linker error] undefined reference to `wxSerialPort::~wxSerialPort()'
ld returned 1 exit status
help :cry: thanks... :oops: :(

Mr_CHISOL
In need of some credit
In need of some credit
Posts: 7
Joined: Fri Oct 01, 2004 9:21 am
Location: Link
Contact:

Post by Mr_CHISOL » Thu Jun 22, 2006 3:29 pm

Is there not even one that knows how to fix this problem?

I have the same problem and it's bugging me big time.
My deadline is also getting closer...

I'm not sure but when I first added the code I think it compiled just fine.
But I've added a lot more to the project after that. (And I DON'T have a backup, stupid YES, lacy YES...)
Why do as everybody else, when everbody else does?

tiwag
Earned some good credits
Earned some good credits
Posts: 123
Joined: Tue Dec 21, 2004 8:51 pm
Location: Austria

Post by tiwag » Fri Jun 23, 2006 12:41 pm

did you add -lwxCtb to your link libraries ?
-tiwag

Post Reply