hi all ive been up all night trying to get this work, im trying to test the `$year` value against the date to make sure that it is not less than the current date

here is my code at the moment it doesn't seem to work im not sure what im doing wrong

```
   public function checkDateField($month, $day, $year)
   {
        if (!is_numeric($month) || !is_numeric($day) || !is_numeric($year) || !checkdate($month, $day, $year)< date("m-d-y")) {
            $msg = '*Invalid date';

        }
        return $msg;    
   }

```
['https://Stackoverflow.com/questions/16158995', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2228587/']
If you want to run **ARM** without Linux, then you need a different compiler (at least). `arm-linux-gnueabi-gcc` is a compiler for **Linux**. The compiler and `libc` are intimately linked. You will need a `newlib` compiler with a portability layer for *qemu*.[porting newlib](http://wiki.osdev.org/Porting_Newlib) 

See: [Balau](http://balau82.wordpress.com/2010/02/28/hello-world-for-bare-metal-arm-using-qemu/) and [Google newlib+qemu](https://www.google.ca/search?q=newlib+qemu). A `newlib` port is hosted at [Github](https://github.com/balau/arm-sandbox/tree/master/qemu-newlib) and seems to the same as the *Balau* blog.

Typically a non-Linux gcc is called `arm-none-eabi-gcc`. The prefix *arm-none-eabi-* is recognized by some configure scripts.
A variant, which worked for me, was to pass the loader library directly and to specify the required library paths using the loader parameter `--library-path`. For example:

```
$ TOOLCHAIN_ROOT=/usr/local/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/arm-linux-gnueabihf
$ qemu-arm $TOOLCHAIN_ROOT/libc/lib/ld-linux-armhf.so.3 --library-path $TOOLCHAIN_ROOT/libc/lib/arm-linux-gnueabihf:/$TOOLCHAIN_ROOT/lib ./my_executable

```

Or equivalently export `LD_LIBRARY_PATH` instead of using `--library-path`.