public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Linker error - missing _start
@ 2001-01-25 15:45 Stephen Smith
  0 siblings, 0 replies; only message in thread
From: Stephen Smith @ 2001-01-25 15:45 UTC (permalink / raw)
  To: cygwin

We may have a slight problem (I compiled as target=powerpc-motorola-elf host=i686-pc-cygwin build=i686-pc-cygwin).
The library is newlib.

When running a hello.c test I am getting a linker error.  Can anyone help?

Thanks in advance

------------------------------------- log ------------------------------------
ssmith@AZ75-SSMITH ~
$ ls
hello.c

ssmith@AZ75-SSMITH ~
$ cat hello.c
  #include <stdio.h>
  int
  main()
  {
    printf("hello world\n");
    return 0;
  }

ssmith@AZ75-SSMITH ~
$

ssmith@AZ75-SSMITH ~
$ target=powerpc-motorola-elf

ssmith@AZ75-SSMITH ~
$ $target-gcc hello.c
/usr/local/lib/gcc-lib/powerpc-motorola-elf/2.95.2-6/../../../../powerpc-motorola-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o: In function `main':
/cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o(.text+0x20): undefined reference to `printf'
collect2: ld returned 1 exit status

ssmith@AZ75-SSMITH ~
$ ls
hello.c

$

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-25 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25 15:45 Linker error - missing _start Stephen Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).