public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compiling with gcc under cygwin
@ 2001-04-23  0:54 Antoine PERNIN
  2001-04-23 10:38 ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine PERNIN @ 2001-04-23  0:54 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Hi all,   (soory if this mail looks long!)

I have a problem (should say 2)while compiling with gcc 2.95.2 under cygwin 
1.1.8


*/  In that case my main doesn't contain anything except a variable 
declaration
arm-elf-gcc /home/apn/test/main.c -o test
/tools/H-i686-pc-cygwin/arm-elf/bin/ld : cannot open crt0.o: No such file or 
directory

This pb has been dealt with a few days ago : so as told, i run "env"
but did not find LIBRARY_PATH


here is the result of "env":
PROMPT=$p$g
PWD=/home/apn
COMSPEC=C:\WINDOWS\COMMAND.COM
ARMINC=C:\ARM250\INCLUDE
DA_SDK=C:\da_sdk
!C:=C:\cygwin\bin
CMDLINE=bash --login -i
HOSTNAME=RD
WINDIR=C:\WINDOWS
WINBOOTDIR=C:\WINDOWS
PS1=\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$
BLASTER=A220 I5 D1 T4
USER=apn
MACHTYPE=i686-pc-cygwin
OLDPWD=/usr/bin
TEMP=/c/WINDOWS/TEMP
ARMLIB=C:\ARM250\LIB
SHLVL=1
MAKE_MODE=unix
!Z:=Z:\APn\Docs\Perso
SHELL=/bin/sh
HOSTTYPE=i686
OSTYPE=cygwin
TERM=cygwin
HOME=/home/apn
PATH=/tools/H-i686-pc-cygwin/bin:/usr/local/bin:/usr/bin:/bin:/c/PERL/BIN/:/c/ARM250/BIN:/c/WINDOWS:/c/WINDOWS/COMMAND:/c/PROGRA~1/BORLAND/DELPHI5/BIN:/c/PROGRA~1/BORLAND/DELPHI5/PROJECTS/BPL
_=/usr/bin/env



*/ In that case I try to print anything using stdio.h
(same command line)
/home/apn/test/main.c:1¨: stdio.h : No such file or directory



Could anyone help me??
Thanks in advance

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling with gcc under cygwin
  2001-04-23  0:54 Compiling with gcc under cygwin Antoine PERNIN
@ 2001-04-23 10:38 ` Christopher Faylor
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2001-04-23 10:38 UTC (permalink / raw)
  To: cygwin

On Mon, Apr 23, 2001 at 07:54:20AM +0000, Antoine PERNIN wrote:
>Hi all,   (soory if this mail looks long!)
>
>I have a problem (should say 2)while compiling with gcc 2.95.2 under cygwin 
>1.1.8
>
>
>*/  In that case my main doesn't contain anything except a variable 
>declaration
>arm-elf-gcc /home/apn/test/main.c -o test
>/tools/H-i686-pc-cygwin/arm-elf/bin/ld : cannot open crt0.o: No such file or 
>directory
>This pb has been dealt with a few days ago : so as told, i run "env"
>but did not find LIBRARY_PATH

This is not a cygwin package.  You've either acquired or buit an arm-elf
version of gcc.  And, for some reason, you don't have a crt0.o.

Why this may be would have something to do with where you got the
arm-elf gcc.

cgf

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling with gcc under Cygwin
@ 2001-04-23 10:18 Mark Schoenberg
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Schoenberg @ 2001-04-23 10:18 UTC (permalink / raw)
  To: cygwin

Dear Antoinne,

     gcc looks for crt0.o in /usr/lib (I think, possibly /lib) and looks for
stdio.h in /usr/include.  Usually, when Cygwin is installed, the installed
directories get mounted in such a way that gcc can find what it needs.

     There are many sophisticated things one could tell an experienced user,
like check the gcc "spec" file, but perhaps the simplest thing to do is to
reinstall Cygwin and check, using the mount command, that the correct
directories are being mounted.

                          Mark Schoenberg,
                          Emmes Technologies

Check out http://www.emmestech.com


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-04-23 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23  0:54 Compiling with gcc under cygwin Antoine PERNIN
2001-04-23 10:38 ` Christopher Faylor
2001-04-23 10:18 Compiling with gcc under Cygwin Mark Schoenberg

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).