image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old February 14th, 2003, 07:29 AM
Registered User
 
Join Date: Dec 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
tim_mcd is on a distinguished road
complier differences

does anyone know which librarys are linked when compiling using 'c++' as opposed to 'cc'. My project works with one but not the other, argh.

cheers

timmcd
Reply With Quote
  #2  
Old February 14th, 2003, 09:34 AM
lurk's Avatar
Mitä?
 
Join Date: Mar 2002
Location: Land o' skeeterz
Posts: 2,087
Thanks: 0
Thanked 0 Times in 0 Posts
lurk is on a distinguished road
Are you sure that it is a libraries issue? Those are compilers for different "languages"...

Apart from that otool is what you want here are some examples

Code:
[Omppu:~] eric% otool -L /sw/bin/xemacs
/sw/bin/xemacs:
        /usr/X11R6/lib/libXaw.7.dylib (compatibility version 7.0.0, current version 7.0.0)
        /sw/lib/libtiff.3.dylib (compatibility version 3.5.0, current version 3.5.7)
        /sw/lib/libpng.2.dylib (compatibility version 1.0.12, current version 1.0.12)
        /sw/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
        /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3)
        /usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0, current version 4.11.0)
        /usr/X11R6/lib/libXmu.6.dylib (compatibility version 6.2.0, current version 6.2.0)
        /usr/X11R6/lib/libXt.6.dylib (compatibility version 6.0.0, current version 6.0.0)
        /usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0, current version 6.4.0)
        /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0)
        /usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0, current version 6.0.0)
        /usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0, current version 6.3.0)
        /sw/lib/libdl.0.dylib (compatibility version 0.0.0, current version 0.0.0)
        /sw/lib/libncurses.dylib.5 (compatibility version 5.0.0, current version 5.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 55.1.0)
[Omppu:~] eric% otool -L /Applications/TextEdit.app/Contents/MacOS/TextEdit 
/Applications/TextEdit.app/Contents/MacOS/TextEdit:
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 8.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 60.0.0)
[Omppu:~] eric%
Hope that comes out OK.

Have Fun!
-Eric
Reply With Quote
  #3  
Old February 15th, 2003, 11:26 AM
Registered User
 
Join Date: Dec 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
tim_mcd is on a distinguished road
otool did the job, c++ links to the system library (see below), simply including it within my project made it all ok.

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 55.1.0)
Reply With Quote
  #4  
Old February 15th, 2003, 11:27 AM
Registered User
 
Join Date: Dec 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
tim_mcd is on a distinguished road
forgot to say thanks before hitting reply.

cheers timmcd
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Curious on any speed differences... ScottW Site Discussion 3 October 2nd, 2002 12:49 AM
10.1.5 and 10.2 differences? wooly-booger Mac OS X System & Mac Software 1 July 17th, 2002 08:13 PM
differences beetwen apple flat displays ? maccatalan Hardware & Peripherals 5 July 16th, 2002 10:28 AM
iBook Revision Differences?? pbmac Hardware & Peripherals 0 May 7th, 2002 04:22 PM
G3 and G4 logic board differences? chemistry_geek Hardware & Peripherals 3 September 19th, 2001 10:28 PM


All times are GMT -5. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.