[Qt-interest] collect2: ld returned 1 exit status
Bo Thorsen
bo at fioniasoftware.dk
Fri Sep 2 09:37:39 CEST 2011
Den 02-09-2011 09:15, arun kumar skrev:
>
> Hi
>
> I Installed the SoundTouch(C++ library for sound processing)& BPM
> libraries to */usr/local/lib * and I included
> #include<soundtouch/SoundTouch.h>
> as header file and declared like this
>
> soundtouch::SoundTouchm_objSoundTouch; in my header file
>
> when I run my application Igot one error like this
>
> Build Issue
> collect2: ld returned 1 exit status
> error: collect2: ld returned 1 exit status
>
> Compile output
>
> Undefined symbols:
>
> "soundtouch::SoundTouch::SoundTouch()", referenced from:
>
> InputTest::InputTest()in audioinput.o
>
> InputTest::InputTest()in audioinput.o
>
> "soundtouch::SoundTouch::~SoundTouch()", referenced from:
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::~InputTest()in audioinput.o
>
> InputTest::InputTest()in audioinput.o
>
> InputTest::InputTest()in audioinput.o
>
> ld: symbol(s) not found
>
> collect2: ld returned 1 exit status
>
> make: *** [audioinput.app/Contents/MacOS/audioinput] Error 1
>
> make: Leaving directory `/Users/User/Desktop/Test2/audioinput-build-desktop'
>
> The process "/usr/bin/make" exited with code 2.
>
> Error while building project audioinput (target: Desktop)
>
> When executing build step 'Make'
You need to link to the library as well. Including the header file
doesn't give the linker access to the library code.
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list