Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Undefined reference error: Page 1 of 20 (20 Items)
   
Undefined reference error  
1st scenario.

I am having 4 library projects and one application project. Application project is using all the 4 library files.
The libraries are BasicSignalProcessing, ePIAF, FileIO, MainMixer and application is MainMixerTestApplication.

1. ePIAF library project has the reference(Project References) on BasicSignalProcessing.
2. FileIO library project has the reference(Project References) on BasicSignalProcessing and ePIAF library project.
3. MainMixer library project has the reference(Project References) on BasicSignalProcessing and ePIAF library project. 
4. MainMixerTestApplication application project has the reference(Project References) on BasicSignalProcessing, ePIAF, 
FileIO and MainMixer library projects.

Individual libraries are getting built properly but MainMixerTestApplication is failing with error 'undefined reference 
to ...'.
I have added the necessary include folders in search paths and I am linking the above libraries by including them in 
'Properties->QNX C/C++ Project->Linker->Extra library paths'

Attached the build log for your reference.

Can anyone tell me what is the exact reason and how to get rid of this CRITICAL error ?

2nd scenario.

I have created a TestLib library project and TestMain application project where main function calls the TestLibProc 
function implemented in the test library. In this also I am getting similar error even though I am including the library
 while linking and it is getting resolved only if I include the OBJ file(TestLib.o) in the linker(Same is not happening 
in the 1st example as it is flashing an error in both MainMixer & MainMixerTestApplication). I feel including OBJ file 
is a crude method.
Attachment: Text ErrorLog.txt 17.48 KB