[ace-users] how to link programs to ACE
Matthew Gillen
mgillen at bbn.com
Tue Jul 3 12:12:49 CDT 2007
Albert Sanchez wrote:
> Hi,
>
>
>
> I have built ACE in an Ubuntu following the steps indicated at
> http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
> <http://www.dre.vanderbilt.edu/%7Eschmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix>
> and I want to compile some basic examples, like the ones in your
> tutorial
> http://www.huihoo.org/ace_tao/ACE-5.2+TAO-1.2/ACE_wrappers/docs/tutorials/online-tutorials.html
>
>
>
> I don't know if I am missing something but when I try…:
>
>
>
> g++ -I /LWGW/ACE_wrappers/build/ace/ -L /LWGW/ACE_wrappers/build/ace
> -static exe1.cpp -o exe1 (exe1 is the code at
> http://www.huihoo.org/ace_tao/ACE-5.2+TAO-1.2/ACE_wrappers/docs/tutorials/001/page03.html
> <http://www.huihoo.org/ace_tao/ACE-5.2+TAO-1.2/ACE_wrappers/docs/tutorials/001/page03.html>
> )
>
>
>
> it doesn't work:
>
>
>
> exe1.cpp:8:31: error: ace/SOCK_Acceptor.h: No such file or directory
>
> exe1.cpp:11:10: warning: #pragma once in main file
>
> exe1.cpp:17:31: error: ace/Event_Handler.h: No such file or directory
>
> exe1.cpp:21:20: error: logger.h: No such file or directory
>
> ...etc
Try this: change
"-I /LWGW/ACE_wrappers/build/ace/" to "-I/LWGW/ACE_wrappers/build/",
and
"-L/LWGW/ACE_wrappers/build/ace" to -L/LWGW/ACE_wrappers/build/lib"
Matt
More information about the Ace-users
mailing list