Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial value compilation problem #4

Open
kuldeepdhaka opened this issue Nov 3, 2014 · 0 comments
Open

serial value compilation problem #4

kuldeepdhaka opened this issue Nov 3, 2014 · 0 comments

Comments

@kuldeepdhaka
Copy link
Contributor

SerialPortToolForm.cpp: In member function ‘void SerialPortToolForm::initData()’:
SerialPortToolForm.cpp:64:27: error: ‘BAUD128000’ was not declared in this scope
map_int_baud_[128000] = BAUD128000;
^
SerialPortToolForm.cpp:66:27: error: ‘BAUD256000’ was not declared in this scope
map_int_baud_[256000] = BAUD256000;
^
make: *** [.obj/SerialPortToolForm.o] Error 1
[kuldeep@localhost Mindplus-Desktop]$ find .|grep SerialPortToolForm.cpp

_solved: [qtextserialport.h]

if defined(Q_OS_WIN) || defined(qdoc)

BAUD14400 = 14400,          //WINDOWS ONLY
BAUD56000 = 56000,          //WINDOWS ONLY
BAUD128000 = 128000,        //WINDOWS ONLY
BAUD256000 = 256000,        //WINDOWS ONLY

endif //Q_OS_WIN

BAUD110 = 110,
BAUD300 = 300,
BAUD600 = 600,
BAUD1200 = 1200,
BAUD2400 = 2400,
BAUD4800 = 4800,
BAUD9600 = 9600,
BAUD19200 = 19200,
BAUD38400 = 38400,
BAUD57600 = 57600,
BAUD115200 = 115200,

// BAUD128000 = 128000, //WINDOWS ONLY
BAUD250000 = 250000, //WINDOWS ONLY
//BAUD256000 = 256000 //WINDOWS ONLY
};

or add using compile time condition in [SerialPortToolForm.cpp]
SerialPortToolForm::initData()
{
{
map_int_baud_[110] = BAUD110;
map_int_baud_[300] = BAUD300;
map_int_baud_[600] = BAUD600;
map_int_baud_[1200] = BAUD1200;
map_int_baud_[2400] = BAUD2400;
map_int_baud_[4800] = BAUD4800;
map_int_baud_[9600] = BAUD9600;
map_int_baud_[19200] = BAUD19200;
map_int_baud_[38400] = BAUD38400;
map_int_baud_[57600] = BAUD57600;
map_int_baud_[115200] = BAUD115200;
map_int_baud_[128000] = BAUD128000;
map_int_baud_[250000] = BAUD250000;
map_int_baud_[256000] = BAUD256000;
}

@kuldeepdhaka kuldeepdhaka mentioned this issue Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant