I isn't able to compile a simple hello_world with Cygwin (email fixed)
silverio.di at qem.it
silverio.di at qem.it
Tue Apr 15 14:58:22 UTC 2003
Hi,
I've some problems to compile a very simple hello_world apps
(not with RTEMS matter yet). This is the steps that I've followed:
- download of complete Cygwin tool-chain on PC directory
- installation of Cygwin from directory onto c:\bin\cygwin
- download of following files from FTP OARCORP (working cd directory):
rtems-base-binutils-2.13.2.1-2.tar.bz2
rtems-base-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
m68k-rtems-binutils-2.13.2.1-2.tar.bz2
m68k-rtems-c++-gcc3.2.1newlib1.11.0-2.tar.bz2
m68k-rtems-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
- start of cygwin environment
- copy of all rtems files onto root directory
- unpack of rtems files between followin command:
tar -xjf <rtems_file>
in following order:
1°) rtems-base-binutils-2.13.2.1-2.tar.bz2
2°) rtems-base-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
3°) m68k-rtems-binutils-2.13.2.1-2.tar.bz2
4°) m68k-rtems-c++-gcc3.2.1newlib1.11.0-2.tar.bz2
5°) m68k-rtems-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
THANK YOU to:
gregory menke
Joel Sherrill
Corsepius
for this tips
- wrote this in bash session:
export PATH=/opt/rtems/bin:$PATH
- wrote this in my home, hello_word.c file
<hello_word.c>
int main(void)
{
return 0;
}
- launched compilator with:
$ m68k-rtems-gcc.exe hello_word.c
/opt/rtems/lib/gcc-lib/m68k-rtems/3.2.1/../../../../m68k-rtems/bin/ld:
warning:cannot find entry symbol _start; defaulting to 80000074
What I mistake ? Because I can't compile a so simple program ?
Thank you very much
More information about the users
mailing list