473,587 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GCC Broken on Leopard (OSX)

After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.

Perhaps there's a simple solution.

Here's some info on it:

laptop:Desktop imok$ gcc hello.c
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
All help is appreciated. Thank you.
Jan 19 '08 #1
11 2229
In article <74************ *************** *******@c4g2000 hsg.googlegroup s.com>,
Imok20 <Im****@gmail.c omwrote:
>After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.
Problems with tools are beyond the scope of the C language and
therefore off-topic in comp.lang.c.

>All help is appreciated. Thank you.
You might be more likely to get useful help in one or more of:
comp.sys.mac.pr ogrammer.tools
comp.sys.mac.pr ogrammer.help
comp.sys.mac.pr ogrammer.misc
comp.sys.mac.mi sc
dave

--
Dave Vandervies dj3vande at eskimo dot com
Embarassingly, I thought for a moment I didn't actually have a dining
table but then realised that's the proper name for what I call a
filing system. --Peter in the scary devil monastery
Jan 19 '08 #2
Imok20 wrote:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.
A MacOS group would be more appropriate, this is a tool/OS problem.

--
Ian Collins.
Jan 19 '08 #3
On Sat, 19 Jan 2008 16:46:32 -0600, Imok20 wrote
(in article
<74************ *************** *******@c4g2000 hsg.googlegroup s.com>):
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.

Perhaps there's a simple solution.

Here's some info on it:

laptop:Desktop imok$ gcc hello.c
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
All help is appreciated. Thank you.
I am using gcc on 10.5.1 and it works as expected. I have no obvious
guesses about where you might have gone wrong, but I'm fairly convinced
that your subject line his highly misleading.

--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Jan 19 '08 #4
In article <74************ *************** *******@c4g2000 hsg.googlegroup s.com>,
Imok20 <Im****@gmail.c omwrote:
>laptop:Deskt op imok$ gcc hello.c
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
On my system, that file is in /usr/lib/crt1.10.5.o. See if you have that
file, or something that looks like an older version of it.

-- Richard
--
:wq
Jan 20 '08 #5
On 19 Jan 2008 at 22:46, Imok20 wrote:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.
Unfortunately, it is not permitted in this group to make any negative
comments about gcc.

On the other hand, you can attack lcc-win with all the fury you can
muster, and the regulars will lap it up.

Jan 20 '08 #6
In article <sl************ *******@nospam. invalid>,
Antoninus Twink <no****@nospam. invalidwrote:
>On 19 Jan 2008 at 22:46, Imok20 wrote:
>After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.

Unfortunatel y, it is not permitted in this group to make any negative
comments about gcc.

On the other hand, you can attack lcc-win with all the fury you can
muster, and the regulars will lap it up.
Quite so.
Just like the Bush admin, it's all about politics. Who's in with who.

Jan 21 '08 #7
Antoninus Twink <no****@nospam. invalidwrote:
On 19 Jan 2008 at 22:46, Imok20 wrote:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.

Unfortunately, it is not permitted in this group to make any negative
comments about gcc.
This is news to me. Stick around longer.
On the other hand, you can attack lcc-win with all the fury you can
muster, and the regulars will lap it up.
Difference being, GCC+glibc is [arguably] much more diligent about sticking
to the standard. Case in point, lcc-win's gratuitous MIN/MAX macro
definitions discussed a week or three ago.

Plus, Jacob defends and responds to criticisms. GCC criticisms disappear
into the void, whereas lcc-win criticisms, for better or worse, reverberate.

If you're interested in GCC criticisms, subscribe to an OpenBSD
mailing-list. Theo & Company are happy to use language extensions; their
beef is with other areas of GCC. Consequently, you'll find more GCC rants,
though since nobody defends GCC those threads peter out almost as quickly as
they do here.

It takes two to have a discussion or argument. It's rare that people will
post follow-ups to themselves or others affirming the same thought. That's
what blogs are for.

Jan 21 '08 #8
On Mon, 21 Jan 2008 00:15:49 -0600, William Ahern wrote
(in article <lt************ @wilbur.25thand Clement.com>):
It takes two to have a discussion or argument. It's rare that people will
post follow-ups to themselves or others affirming the same thought. That's
what blogs are for.
All this time I've been wondering what purpose blogs have, thanks for
finally giving a good answer.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Jan 21 '08 #9
William Ahern said:
Antoninus Twink <no****@nospam. invalidwrote:
>On 19 Jan 2008 at 22:46, Imok20 wrote:
After upgrading to Mac OSX Leopard, and reinstalling the Dev Tools, I
am unable to compile C programs. GCC is there, but it can't find a
library. I'm currently running 10.5.1.

Unfortunatel y, it is not permitted in this group to make any negative
comments about gcc.

This is news to me.
Strictly speaking, review comments about *any* implementation are
off-topic, but in practice implementations are sometimes criticised here,
and negative comments made about them. I myself have made negative
comments about gcc in this group, and so have others.
<snip>

It takes two to have a discussion or argument.
Something that is all too easily forgotten.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jan 21 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8610
by: Nigel King | last post by:
I have a problem with the logging module. It reports a Broken Pipe error after outputing to the log file occasionally (5%). This does not appear to happen on Mac OSX using current finked python (2.3.3) but does appear to occur on Python 2.3.4 running on a very old Redhat Linux xxxxx 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686. The actual...
7
1504
by: duckfreezone | last post by:
Hi, I've got a small test program which behaves correctly (IMHO) on all compilers that I have acccess to, with the exception of the gcc on Macintosh OSX "gcc version 4.0.0 (Apple Computer, Inc. build 5026)" Looks to be that the order of evaluation of the assignment on OSX is different to other systems. I *think* it is wrong on OSX, or am...
1
1241
by: Chris | last post by:
Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was excited that Python 2.5 was included, but this excitement was very short lived. Almost nothing works. Upon startup I get this message: 'import site' failed; use -v for traceback and sure enough, all of the built-in packages are non-existent. I'm not sure why Apple...
4
2305
by: mark | last post by:
I've recently switched from Ubuntu to OS X Leopard. I have some python scripts which download info from the web. The scripts were working fine before on Ubuntu, but urllib seems to work really slowly on Leopard. I tried an example from the docs: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
2
1401
by: arbo.newmedia | last post by:
Hi, can anyone help me with MySQL. I've got Mac OSX Leopard and I'm trying to install MySQLdb for Python. I'm running build and it goes withous any errors and install. But when I'm typing : import MySQLdb in IDLE I've got this:
7
1612
by: Mark Carter | last post by:
One thing I really liked about Ubuntu was that Nautilus allowed you to add scripts to a directory which could be accessed via the RMB. It was a very simple thing to do. I've recently switched to Leopard, and I'm trying to do the same thing. I'm fairly experienced with Python, but new to OS X. I have installed FinderPop, which lets me add...
3
1604
by: Gordon | last post by:
Has anybody had any success compiling a PHP build for Leopard, specifically for Leopard running on a 64 bit Intel architecture? I have been using the Entropy builds up to now but there has been a major lack in progress with them in recent months and I get the impression the developer has stopped working on them. Apple do provide a PHP with...
3
1714
by: squishywaffle | last post by:
Greetings, I've been trying to figure out if it's possible to attach a Python script to an action via Mac OSX Leopard's File Actions system. I'm wanting to call a Python script every time a file is added to the monitored folder. Just adding a .py file doesn't seem to do anything at all, and I can't find any log output anywhere to see what's...
6
6678
by: Massi | last post by:
Hi everyone, I'm trying to install Python2.6 on my mac (Leopard 10.5.5), but I'm encountering some problems. To install the package I followed the instructions I found at this link: http://wiki.python.org/moin/MacPython/Leopard If I open wing, it turns out that the installed version is actually 2.6, but if i run python from terminal it...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5719
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.