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
GCC error
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="the_jesus" data-source="post: 40319"><p>I have noticed that when I try to compile code that I get an error saying that gcc cannot create executables. If I try something simple like:</p><p></p><p>gcc test.c -o test</p><p></p><p>I get the error "ld: can't locate file for: -lSystem"</p><p></p><p>If I run gcc without linking (-c) I don't get the error. I have basically come to the conclusion that I am missing a library. I have reinstalled gcc and the xcode tools serveral times and it has not fixed the problem. Any suggestions would be greatly appreciated.</p><p></p><p>Thanks. </p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p></blockquote><p></p>
[QUOTE="the_jesus, post: 40319"] I have noticed that when I try to compile code that I get an error saying that gcc cannot create executables. If I try something simple like: gcc test.c -o test I get the error "ld: can't locate file for: -lSystem" If I run gcc without linking (-c) I don't get the error. I have basically come to the conclusion that I am missing a library. I have reinstalled gcc and the xcode tools serveral times and it has not fixed the problem. Any suggestions would be greatly appreciated. Thanks. :confused: [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
GCC error
Top