Girisha SG
|
Re: Undefined reference error
|
Girisha SG
09/02/2010 9:21 AM
post65640
|
Re: Undefined reference error
I have added the following command to in the 'other options' of the linker
'-Bstatic -lFileIO -lBasicSignalProcessing -lePIAF -lMainMixer -lm' and I am getting the below error :( ...
It is really IMPORTANT for us to get rid of these kind of errors ...
C:/ide-4.7-workspace/MainMixerTestApplication/private/exampleAppMainMixer.c:344: warning: 'fpOutName1' is used
uninitialized in this function
C:/ide-4.7-workspace/MainMixerTestApplication/private/exampleAppMainMixer.c:352: warning: 'fpOutName2' is used
uninitialized in this function
C:/QNX650/host/win32/x86/usr/bin/rm -f C:/ide-4.7-workspace/MainMixerTestApplication/arm/o-le-g/
MainMixerTestApplication_g
C:/QNX650/host/win32/x86/usr/bin/qcc -Vgcc_ntoarm -Wl,--no-keep-memory -Bstatic -lFileIO -lBasicSignalProcessing -
lePIAF -lMainMixer -lm -oC:/ide-4.7-workspace/MainMixerTestApplication/arm/o-le-g/MainMixerTestApplication_g
exampleAppMainMixer.o -L . -L C:/ide-4.7-workspace/FileIO/arm/a-le-g -L C:/ide-4.7-workspace/BasicSignalProcessing/arm
/a-le-g -L C:/ide-4.7-workspace/ePIAF/arm/a-le-g -L C:/ide-4.7-workspace/MainMixer/arm/a-le-g -L C:/QNX650/target/qnx6/
armle/lib -L C:/QNX650/target/qnx6/armle/usr/lib -Wl,--rpath-link . -Wl,--rpath-link C:/ide-4.7-workspace/FileIO/arm/a-
le-g -Wl,--rpath-link C:/ide-4.7-workspace/BasicSignalProcessing/arm/a-le-g -Wl,--rpath-link C:/ide-4.7-workspace/ePIAF/
arm/a-le-g -Wl,--rpath-link C:/ide-4.7-workspace/MainMixer/arm/a-le-g -Wl,--rpath-link C:/QNX650/target/qnx6/armle/lib -
Wl,--rpath-link C:/QNX650/target/qnx6/armle/usr/lib -EL -g
C:\QNX650\host\win32\x86\usr\bin\ntoarm-ld: cannot find -lFileIO
make.exe[2]: Leaving directory `C:/ide-4.7-workspace/MainMixerTestApplication/arm/o-le-g'
make.exe[1]: Leaving directory `C:/ide-4.7-workspace/MainMixerTestApplication/arm'
cc: C:/QNX650/host/win32/x86/usr/bin/ntoarm-ld caught signal 1
make.exe[2]: *** [C:/ide-4.7-workspace/MainMixerTestApplication/arm/o-le-g/MainMixerTestApplication_g] Error 1
make.exe[2]: Target `all' not remade because of errors.
make.exe[1]: [all] Error 2 (ignored)
|
|
|
Aleksandar Ristovski(deleted)
|
Re: Undefined reference error
|
Aleksandar Ristovski(deleted)
09/02/2010 1:03 PM
post65735
|
Re: Undefined reference error
What are the actual files of your libraries? e.g. ePIAF, what is the
file name (full name)?
On Thu, 2010-09-02 at 07:29 -0400, Girisha SG wrote:
> 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.
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post65624
|
|
|