| mih (24) | |||
|
Hello All, I am getting below error while trying to link DB2 libraries, any clues what must be going wrong here.. Many thanks for your help.
| |||
|
|
|||
| Moschops (5981) | |
| Which object file contains the class function arrayBinarySearch_va? You aren't linking to it. Likewise the other functions. | |
|
|
|
| mih (24) | |||
|
Maschops, The file "DataGrid.h" has the class "DataGrid" and arrayBinarySearch_va funtion is implemented inside Datagrid.cc. So the object file Datagrid.o contains the mentioned class function. its something like below
Do you see something wrong here ? Many thanks in advance.. Note: I am not very well versed with C/C++ programming. | |||
|
Last edited on
|
|||
| mih (24) | |
|
The errors stoped after I remove "inline" from method definition in "DataGrid.h" Old: inline int DataGrid::arrayBinarySearch_va( textConv *_cnv, char *_parms, int _numKeys, va_list varList) New : int DataGrid::arrayBinarySearch_va( textConv *_cnv, char *_parms, int _numKeys, va_list varList) Do you think this could be the reason ?? | |
|
Last edited on
|
|
| guestgulkan (2916) | ||||
That is a possibility The following is taken from Using the GNU compiler website
| ||||
|
|
||||
| mih (24) | |
|
Maschops, guestgulkan, Many thanks for your help and information. | |
|
|
|