Jump to content

Talk:Day of the week: Difference between revisions

→‎Ada program: Works fine with GNAT GPL
(→‎Ada program: Works fine with GNAT GPL)
Line 28:
 
::Tried... I've GNAT 4.2.3, GPL of course... maybe it's a Pro only ''unit'' :( --[[User:ShinTakezou|ShinTakezou]] 18:05, 12 December 2008 (UTC)
 
<blockquote><blockquote>No, it is a part of the standard library. I have tested it at home on my Linux box with GNAT GPL:
<pre>>gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /cardhu.b/gnatmail/release-gpl/build-cardhu/src/configure --prefix=/usr/gnat --target=i686-pc-linux-gnu --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --enable-languages=c,ada --disable-nls --disable-libada --enable-checking=release --enable-threads=posix
Thread model: posix
gcc version 4.1.3 20080522 for GNAT GPL 2008 (20080521)
</pre>
Then compiled as:
<pre>>gnatmake -gnat05 yuletide.adb</pre>
I've got:
<pre>>./yuletide.adb
2011-12-25 00:00:00
2016-12-25 00:00:00
2022-12-25 00:00:00
2033-12-25 00:00:00
2039-12-25 00:00:00
2044-12-25 00:00:00
2050-12-25 00:00:00
2061-12-25 00:00:00
2067-12-25 00:00:00
2072-12-25 00:00:00
2078-12-25 00:00:00
2089-12-25 00:00:00
2095-12-25 00:00:00
2101-12-25 00:00:00
2107-12-25 00:00:00
2112-12-25 00:00:00
2118-12-25 00:00:00
</pre>
I think you have some installation problem. Check the system path. It seems that the compiler cannot find the include directory, where the library files are stored. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 19:08, 12 December 2008 (UTC)
</blockquote></blockquote>
 
==When failing and when not on 32bit machine==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.