tags:

views:

355

answers:

4

I have looked at /System/Library, but I have not found the iostream library/module by

ack iostream

Where are the standard libraries in OS/X?

+1  A: 

IIRC, /usr/local/lib ... Try adding -L/usr/local/lib to your GCC build options. Although the stdc++ libraries should be in your linker path already. Compiler errors usually indicate missing headers / syntax error while linker errors indicate missing binary blobbage.

Aiden Bell
@Bell: How can you add -L/local/lib to your GCC build options? I did not find a file "~/.gccrc" at my Home.
Masi
Not used OSX much, are you using XCode? You can edit the CC=... line in the Makefile or do it however OSX wants you to :)
Aiden Bell
@Bell: Where is the Makefile in Ubuntu/Mac?
Masi
+1  A: 

Try /usr/lib/ or /usr/local/lib/

Kieveli
+2  A: 

Please make sure you have XCode installed first.

Without xcode you won't be able to develop C/C++ applications since xcode includes all linkable standard libraries and headers.

HMage
@HMage: I have Xcode 3.1.2 in my Mac.
Masi
+1  A: 

iostream is a C++ thing, not C. You might get more help if you re-tag your question appropriately.

jmtd
@jmtd: Thank you for pointing that out! It seems that a similar library for C is io.
Masi