Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
The linker cannot find the libraries (do they exist?)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="pietrom" data-source="post: 935655" data-attributes="member: 130017"><p>I am a new Mac OS user, and I have problems building my programs. At the beginning the compiler was not found. I set the paths in ".profile", and that problem has been solved. Now the linker gives me errors such as:</p><p></p><p>error: iostream: No such file or directory</p><p></p><p>If I do not include *any* file (in a simple test program), I get:</p><p></p><p>ld: library not found for -lcrt1.10.6.o</p><p>collect2: ld returned 1 exit status</p><p></p><p>I suppose I did not install everything needed, but when I installed MacOS X 10.6 with XCode I just followed what indicated...</p><p></p><p>Thank you for any help,</p><p></p><p>Pietro</p><p></p><p>MacBook Pro 17" (2009)</p><p>MacOS X 10.6</p><p>gcc 4.2</p><p></p><p>Source code:</p><p></p><p>[CODE]#include <iostream></p><p>int main()</p><p>{</p><p> std::cout << "Hello world!" << std::endl;</p><p> return 0;</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="pietrom, post: 935655, member: 130017"] I am a new Mac OS user, and I have problems building my programs. At the beginning the compiler was not found. I set the paths in ".profile", and that problem has been solved. Now the linker gives me errors such as: error: iostream: No such file or directory If I do not include *any* file (in a simple test program), I get: ld: library not found for -lcrt1.10.6.o collect2: ld returned 1 exit status I suppose I did not install everything needed, but when I installed MacOS X 10.6 with XCode I just followed what indicated... Thank you for any help, Pietro MacBook Pro 17" (2009) MacOS X 10.6 gcc 4.2 Source code: [CODE]#include <iostream> int main() { std::cout << "Hello world!" << std::endl; return 0; } [/CODE] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
The linker cannot find the libraries (do they exist?)
Top