Problem compiling simple Ada program
Duncan Sands
duncan.sands@math.u-psud.fr
Wed Jun 29 20:20:00 GMT 2005
> This compiles fine, but when I try to link the hello.o file, I get this
> error:
> hello.o:hello.adb:(.text+0x18): undefined reference to
> '_ada__text_io__put_line__2'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libvmain.o)::
> undefined reference to '_WinMain@16'
> collect2: ld returned 1 exit status
Are you linking using gnatlink?
Ciao,
Duncan.
More information about the Gcc-help
mailing list