I am working on a large piece of code. When I compile the code base using jam command, I get a lot of errors saying undefined reference to 'some_function' in a newly added header file in the code base. This header file includes all other relevant header files. Do I need to make changes to the jam file before I can compile the code base?
bundlemgr_distrib_im.c:
#include "bundlemgr_distrib_config.h"
.
.
function{
.
.
retcode = bmd_cfg_init_active(bmd_im_evh);
.
.
}
bundlemgr_distrib_config.h:
cerrno bmd_cfg_init_active(event_mgr_p evh); //declaration
bundlemgr_distrib_config.c
#include "bundlemgr_distrib_config.h"
.
.
cerrno bmd_cfg_init_active(event_mgr_p evh)
{
//definition
}
Build log:
...failed Link bundle/bundlemgr/test/obj-x86/bm_ut_distrib_attr ...
...skipped <installed!rp>bm_ut_distrib_attr for lack of <bundle!bundlemgr!test!obj-x86>bm_ut_distrib_attr...
.
.
bugfix/./bundle/bundlemgr/distrib/src/bundlemgr_distrib_im.c:269: undefined reference to `bmd_cfg_init_active'
Another error:
bundlemgr_distrib_acc_private.h (newly added file)
#include "bundlemgr_distrib_db_api.h"
#include "bundlemgr_distrib_db_private.h"
.
.
function{
.
.
rc = bmd_db_bdl_change_ifh(entry, ifhandle);
.
.
}
bundlemgr_distrib_db_private.h
cerrno bmd_db_bdl_change_ifh(bmd_db_bdl_h_type entry,
ifhtype ifhandle); //declaration
bundlemgr_distrib_db_api.c
#include "bundlemgr_distrib_db_private.h"
.
.
cerrno
bmd_db_bdl_change_ifh (bmd_db_bdl_type *entry,
ifhtype ifhandle)
{
//definition
}
Build log:
...failed Link bundle/bundlemgr/test/obj-x86/bm_ut_distrib_attr ...
...skipped <installed!rp>bm_ut_distrib_attr for lack of <bundle!bundlemgr!test!obj-x86>bm_ut_distrib_attr...
Link bundle/bundlemgr/test/obj-x86/bm_ut_distrib_mbr_info
bundle/bundlemgr/test/obj-x86/bundlemgr_distrib_test_errdis_owner.o: In function `bmd_acc_bdl_set_ifhandle':
/nobackup/pzambad/ci-521-bugfix/./bundle/bundlemgr/distrib/src/bundlemgr_distrib_acc_private.h:3618: undefined reference to `bmd_db_bdl_change_ifh'