[Ace-users] [ace-users] using the build scheme

Johnny Willemsen jwillemsen at remedy.nl
Wed Dec 12 03:14:39 CST 2007


Hi,

It seems the ACE lib isn't linked into the application. I would recommend
you to have a look at MPC, that is part of the distribution and we generate
now our makefiles, much easier to maintain and use.

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl  

*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO             ***
*** See http://www.theaceorb.nl/en/support.html                 ***

"Saya" <bsayanthan at gmail.com> wrote in message
news:<5ac4b6dc-d3c1-4f9b-a962-828adec70917 at d27g2000prf.googlegroups.com>...
> Hi all,
> 
> I am new to ACE and I tried to write a simple program from ACE
> programmers guide, which would use the build scheme provided with the
> ACE framework and with the following makefile
> 
> BIN = test
> FILES = Foo
> SRC= $(addsuffix .cpp,$(FILES))
> OBJ= $(addsuffix .o,$(FILES))
> BUILD   = $(VBIN)
> #---------------------------------------------------------
> # Include macros and targets
> #---------------------------------------------------------
> include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
> include $(ACE_ROOT)/include/makeinclude/macros.GNU
> include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
> include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
> include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
> include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
> 
> 
> and the following simple program - Foo.cpp
> 
> #include "ace/Log_Msg.h"
> void foo(void);
> int ACE_TMAIN (int, ACE_TCHAR *[])
> {
>   ACE_TRACE (ACE_TEXT ("main"));
>   ACE_LOG_MSG->priority_mask (LM_DEBUG | LM_NOTICE,
>                               ACE_Log_Msg::PROCESS);
>   ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
>   foo ();
>   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IGoodnight\n")));
>   return 0;
> }
> void foo(void)
> {
>   ACE_TRACE (ACE_TEXT ("foo"));
>   ACE_DEBUG ((LM_NOTICE, ACE_TEXT ("%IHowdy Pardner\n")));
> }
> 
> I got the following error when trying to make all
> 
> .obj/Foo.o: In function `foo':
> /home/saya/workspace/ace_make/Foo.cpp:16: undefined reference to
> `ACE_Log_Msg::last_error_adapter()'
> 
> (there were a few similar errors)
> 
> Anyhow when I wrote my own makefile the program worked.
> 
> Can anyone advise me on using the build scheme? Is it is better to use
> this build scheme or is it better to have our own makefiles in the
> program.
> 
> Thank you,
> 
> Sayanthan



More information about the Ace-users mailing list