QList as a function parameter - Linking Error - LNK2019

Posted by user2445136 on Stack Overflow See other posts from Stack Overflow or by user2445136
Published on 2013-06-30T10:16:49Z Indexed on 2013/06/30 10:21 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

I have an issue with QList as a function parameter and I'll be glad if you can assist me.

I have this code for example:

void SpinBoxList_Enable(QList spinBoxList) { foreach(QWidget mWidget,*spinBoxList) mWidget->setEnabled(false); }

and in the implemantation file I use the QList variable as a pointer:

SpinBoxList_Enable(&controlBoardSpinBoxList);

( controlBoardSpinBoxList is a variable of QList ).

The Function ToggleBoards_Slot(bool) is a slot that uses When I compile, I get this error message:

1>cmosaixserialnumber.obj : error LNK2019: unresolved external symbol "private: void __cdecl CMosaixSerialNumber::SpinBoxList_Disable(class QList *)" (?SpinBoxList_Disable@CMosaixSerialNumber@@AEAAXPEAV?$QList@PEAVQWidget@@@@@Z) referenced in function "public: void __cdecl CMosaixSerialNumber::ToggleBoards_Slot(bool)" (?ToggleBoards_Slot@CMosaixSerialNumber@@QEAAX_N@Z)

1>cmosaixserialnumber.obj : error LNK2019: unresolved external symbol "private: void __cdecl CMosaixSerialNumber::SpinBoxList_Enable(class QList *)" (?SpinBoxList_Enable@CMosaixSerialNumber@@AEAAXPEAV?$QList@PEAVQWidget@@@@@Z) referenced in function "private: void __cdecl CMosaixSerialNumber::on_ControlBoardCheckBox_StateChanged(int)" (?on_ControlBoardCheckBox_StateChanged@CMosaixSerialNumber@@AEAAXH@Z)

How can I fix this ?

Thanks, EVH671

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt