[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling the RTEMS examples on Mingw
- Date: Sun, 2 Mar 2008 12:10:34 +0800
- From: tcheewan at ntu.edu.sg (Teng Chee Wan Philip)
- Subject: Compiling the RTEMS examples on Mingw
Has anyone tried compiling the hello-world examples using the pre-built
binaries provided by Gaisler Research, on Mingw?
Please correct me if I am wrong. I did the following:
a. Unzip sparc-rtems-4.7.99.2-gcc-4.2.1-1.0.4-mingw.zip into /opt
b. Compile the sample programs under "/opt/rtems-4.8-mingw/src".
In the first compilation, I obtained two warnings on "incompatible
implicit declaration of built-infunction 'printf' " and "incompatible
implicit declaration of built-infunction 'exit' " in function 'Init'. I
added the library path -L/opt/rtems-4.8-mingw/sparc-rtems/lib to remove
the warnings.
I tried running the compiled code in TSIM. The program exited normally
without doing a printf of the "hello world".
Any idea why? Thanks.
Philip