Re: [dev] Problem building dmenu tip

From: Josh Rickmar <joshua_rickmar_AT_eumx.net>
Date: Mon, 19 Jul 2010 12:32:14 -0400

On Mon, Jul 19, 2010 at 08:30:40AM +0200, Szabolcs Nagy wrote:
> On 7/18/10, Josh Rickmar <joshua_rickmar_AT_eumx.net> wrote:
> > in the irc channel said he remembers a similar problem when linking with
> > ld on Linux. Any ideas?
>
> nah, that's not what i meant
>
> i just noted that you get similar error when you link with ld in general like
> ld -o foo -lc foo.o
>
> > /usr/lib/crt0.o(.text+0x9d): In function `___start':
> > : undefined reference to `main'
> > collect2: ld returned 1 exit status
> > *** Error code 1
>
> does other stuff compile fine? eg try
> cc -c -o foo.o foo.c
> cc -o foo -lc foo.o
>

This works fine on some small C programs I have written.
Received on Mon Jul 19 2010 - 18:32:14 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 19 2010 - 18:36:02 CEST