[Qt-interest] collect2: ld returned 1 exit status
Bence Magyar
mw.mzperx at gmail.com
Fri Sep 2 10:34:52 CEST 2011
So basically, check your .pro file for entries like
LIBS += -lsoundtouch (or something like this)
and add it if there's no such line.
-Bence
2011/9/2 Bo Thorsen <bo at fioniasoftware.dk>
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110902/fe5fddc2/attachment.html
More information about the Qt-interest-old
mailing list