• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Boost Thread Linking error in Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Boost Thread Linking error in Xcode 3.0


  • Subject: Boost Thread Linking error in Xcode 3.0
  • From: Sunwoo Park <email@hidden>
  • Date: Tue, 22 Jan 2008 15:19:10 -0800
  • Thread-topic: Boost Thread Linking error in Xcode 3.0

Hi All,
I'm trying to compile & run a very simple Boost thread test program in Xcode
3.0 on OS X 10.5. Xcode could not successfully link it to boost-1_34_1
(thread) libraries.  However,  I could compile and link a similar test
program using the following command.
  g++ thTest.cpp -I /usr/local/include/boost-1_34_1 -l boost_thread-mt
I would appreciate for any help or suggestion from you.
FYI, I attach error messages produced by Xcode 3.0 here.
Regards,
Sunwoo

Building target “threadTest” of project “threadTest” with configuration
“Release” — (2 errors)
    Checking Dependencies
        cd /Users/sunwoo/Work/C++/threadTest
    /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type
-Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden
-fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote
/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTest.
build/threadTest-generated-files.hmap
-I/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTes
t.build/threadTest-own-target-headers.hmap
-I/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTes
t.build/threadTest-all-target-headers.hmap -iquote
/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTest.
build/threadTest-project-headers.hmap
-F/Users/sunwoo/Work/C++/threadTest/build/Release
-I/Users/sunwoo/Work/C++/threadTest/build/Release/include
-I/usr/local/include/boost-1_34_1
-I/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTes
t.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c
/Users/sunwoo/Work/C++/threadTest/main.cpp -o
/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTest.
build/Objects-normal/ppc/main.o
        cd /Users/sunwoo/Work/C++/threadTest
    /Developer/usr/bin/g++-4.0 -o
/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTest.
build/Objects-normal/ppc/threadTest
-L/Users/sunwoo/Work/C++/threadTest/build/Release
-L/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib
-F/Users/sunwoo/Work/C++/threadTest/build/Release -filelist
/Users/sunwoo/Work/C++/threadTest/build/threadTest.build/Release/threadTest.
build/Objects-normal/ppc/threadTest.LinkFileList -arch ppc
-mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk
Undefined symbols:
  "boost::thread::~thread()", referenced from:
      _main in main.o
  "boost::thread::thread(boost::function0<void,
std::allocator<boost::function_base> > const&)", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
          "boost::thread::~thread()", referenced from:
              _main in main.o
          "boost::thread::thread(boost::function0<void,
std::allocator<boost::function_base> > const&)", referenced from:
              _main in main.o
        ld: symbol(s) not found
        collect2: ld returned 1 exit status
Build failed (2 errors)


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Regex Documentation in Xcode 3.0 ?
  • Next by Date: Re: GUI for codesign tool?
  • Previous by thread: Re: Regex Documentation in Xcode 3.0 ?
  • Next by thread: Xcode Organizer actions and %%% variables
  • Index(es):
    • Date
    • Thread