Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error. ld: library not found for -lboost_thread #118

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 2 comments
Open

build error. ld: library not found for -lboost_thread #118

GoogleCodeExporter opened this issue Apr 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

hi

build runs ok till some point where it produces following message:

g++  -fPIC -O -O3 -DUSING_PCH -I"/usr/local/Cellar/boost/1.54.0/include/boost" 
-I"/usr/local/Cellar/boost/1.54.0/." -I"/include" -I"../src" -DXML_USE_PTHREADS 
-L"." -L"/usr/local/Cellar/boost/1.54.0/lib" -L"/lib" -shared -dynamic 
Common/QuickFASTPch.o Application/CommandArgParser.o 
Application/DNDecoderConnectionImpl.o Application/DecoderConnection.o 
Codecs/BasePacketAssembler.o Codecs/Context.o Codecs/DataSource.o 
Codecs/DataSourceBuffer.o Codecs/DataSourceBufferedStream.o 
Codecs/DataSourceStream.o Codecs/DataSourceString.o Codecs/Decoder.o 
Codecs/DictionaryIndexer.o Codecs/Encoder.o Codecs/FastEncodedHeaderAnalyzer.o 
Codecs/FieldInstruction.o Codecs/FieldInstructionAscii.o 
Codecs/FieldInstructionBlob.o Codecs/FieldInstructionByteVector.o 
Codecs/FieldInstructionDecimal.o Codecs/FieldInstructionGroup.o 
Codecs/FieldInstructionSequence.o Codecs/FieldInstructionTemplateRef.o 
Codecs/FieldInstructionUtf8.o Codecs/FieldOp.o Codecs/FieldOpConstant.o 
Codecs/FieldOpCopy.o Codecs/FieldOpDefault.o Codecs/FieldOpDelta.o 
Codecs/FieldOpIncrement.o Codecs/FieldOpTail.o Codecs/FixedSizeHeaderAnalyzer.o 
Codecs/GenericMessageBuilder.o Codecs/MessagePerPacketAssembler.o 
Codecs/MulticastDecoder.o Codecs/PacketSequencingAssembler.o 
Codecs/PresenceMap.o Codecs/SchemaElement.o Codecs/SegmentBody.o 
Codecs/SingleMessageConsumer.o Codecs/StreamingAssembler.o Codecs/Template.o 
Codecs/TemplateRegistry.o Codecs/XMLTemplateParser.o Common/BitMap.o 
Common/Decimal.o Common/Profiler.o Common/Types.o Common/WorkingBuffer.o 
Common/dllmain.o Communication/AsioService.o Communication/AsynchFileSender.o 
Communication/AsynchSender.o Communication/FileSender.o 
Communication/MulticastReceiverHandle.o Communication/PCapReader.o 
Messages/Field.o Messages/FieldAscii.o Messages/FieldByteVector.o 
Messages/FieldDecimal.o Messages/FieldGroup.o Messages/FieldIdentity.o 
Messages/FieldInt16.o Messages/FieldInt32.o Messages/FieldInt64.o 
Messages/FieldInt8.o Messages/FieldSequence.o Messages/FieldSet.o 
Messages/FieldString.o Messages/FieldUInt16.o Messages/FieldUInt32.o 
Messages/FieldUInt64.o Messages/FieldUInt8.o Messages/FieldUtf8.o 
Messages/Message.o Messages/MessageAccessor.o Messages/MessageBuilder.o 
Messages/MessageFormatter.o -l"xerces-c" -l"boost_thread" -l"boost_system" 
-l"boost_filesystem"  -o "../lib/libQuickFAST.dylib"
ld: warning: directory not found for option '-L/lib'
ld: library not found for -lboost_thread
collect2: ld returned 1 exit status
make[1]: *** [../lib/libQuickFAST.dylib] Error 1
make: *** [QuickFAST] Error 2

im running quickfast_1_5_0 on mac os x86_64

in /usr/local/lib i've got extensions .a and .dylib, e. g. 
libboost_thread-mt.a, libboost_thread-mt.dylib

boost and xerces installed via homebrew

Original issue reported on code.google.com by [email protected] on 16 Jul 2013 at 8:09

@GoogleCodeExporter
Copy link
Author

manually ran the command with -l"boost_thread-mt" and it was ok
the error is because it should be -l"boost_thread-mt" instead of 
-l"boost_thread"
how to fix that ? somewhere in setup.sh ?

Original comment by [email protected] on 16 Jul 2013 at 8:15

@GoogleCodeExporter
Copy link
Author

I managed to workaround this simply by adding BOOST_LIB_SUFFIX=-mt param to my 
make command

Original comment by [email protected] on 6 Feb 2014 at 5:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant