[AWS] Compiling example programs with AWS on Mac OS X
Maciej Sobczak
prog at msobczak.com
Tue Dec 29 22:59:05 CET 2009
Hi all,
I have just downloaded the 2.7.0 version of AWS, compiled with default
configuration and installed (make setup build install).
I had some problems during compilation of my example program. I have
used the compiler and linker options as described in the docs - that is:
gnatmake my_webserver
-aI/usr/local/gnat/include/aws
-aI/usr/local/gnat/include/aws/components
-aO/usr/local/gnat/lib/aws/static
-largs -L/usr/local/gnat/lib/aws/static -laws
First there was:
file "ssl-thin.ads" not found
I have worked around it by creating symbolic links to
ssl-thin__dummy.ads/ali in appropriate directories.
(please note that the default AWS config has SOCKETS=std option set up,
not ssl - is this behavior correct?)
After adding these symbolic links the compilation went fine, but the
linker failed with undefined references and the whole worked properly
only when the list of libraries was: -laws -laws_include -laws_ssl.
Is it expected? Did I do something wrong during the compilation of AWS?
(in any case, getting down to do some coding... :-) )
Regards,
--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
More information about the AWS
mailing list