What right track are you on, and what steps hav you taken on it? :-)
I am sorry, I didn't notice the -DUSE_GNULIBC_1 before. It should tell
you in README or INSTALL or so if this is true, but it is my impression
that gcc-2.8.1 wants to be linked with glibc-2 AKA libc-6. crt1.o is a
standard startfile, that is the entry point when you make an executable
(and the startfiles for libc-5 and -6 are not compatible) but I don't
know where it came from. You didn't ask it to make an executable. you
asked it (-c) to take version.c and make version.o. Also, I don't know
where -b came from. That is normally used to specify a target for a
cross-compile, and I have never seen it used without an argument.
I just assumed you had glibc-2. If you do, I would get the
gcc-2.7.2.3-glibc.bin.tar.gz from metalab.unc.edu/pub/Linux/GCC. That
is what I did when Wine-990131 broke the gcc-2.7.2.3 I had compiled and
linked with libc-5.0.9 (it was all I had at the time) and it has worked
fine ever since. If you don't.. well, the README or INSTALL should tell
you if you need it, but sometimes those things _do_ go on. :-)
Interesting. I just made a program baz.c: int baz(){} and compiled it
with gcc -c baz.c. No diagnostics. gcc -b -c baz.c gave me
gcc: installation problem, cannot exec `cc1': No such file or directory
gcc -o my baz.c gave
/usr/lib/crt1.o(.text+0x36): undefined reference to `main'
Something is wrong, but I am not on site, and not really all that far
beyond the "hello World" level myself. H.J??
I hope this is some use to you.
Lawson
On Mon, 5 Apr 1999, Matt Adams wrote:
> Thanks to Lawson for getting me on the right track <g>
>
> However, it appears that the saga continues grumble, grumble....
> Here is what I receive when I attempt to compile:
>
> gcc -b -c -DIN_GCC -DUSE_CPPLIB=1 -DUSE_GNULIBC_1 -g
-DHAVE_CONFIG_H -I.
> -I. -I./config version.c
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x5a): undefined reference to `main'
> make: *** [version.o] Error 1
>
> Ack! I've just begun to learn c so this is above me. (MASTER
> OF THE OBVIOUS) Anyhow, suggestions are appreciated (as always)
>
> Thanks --
Matt
>
> --
> [EMAIL PROTECTED]
> "i am a .sig virus, please \
> put me in your .sig file"
>
>
>
>
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]