HOST MACHINE and OPERATING SYSTEM:4.5-RELEASE FreeBSD i386
If on Windows based OS's, which version of WINSOCK do you
use?:
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
AREA/CLASS/EXAMPLE AFFECTED:
DOES THE PROBLEM AFFECT:
COMPILATION?yes
LINKING?yes
EXECUTION?yes
OTHER (please specify)?
DESCRIPTION:
Hi there,
I am have a very beautiful experiance learning ACE, but I am having a
problem with compiling. The makefiles in the examples are different than
what i am used to. I use make not gmake. anyway i am trying to compile the
first example in the Hughes manual. I got the make file from
$(WRAPPER_ROOT)/examples/Logger/client/Makefile and edited the 45th line to
correspond to the example program's properties namely:
.obj/ex1.o .obj/ex1.so .shobj/ex1.o .shobj/ex1.so: ex1.cpp
but I get the following errors:
ex1.cpp: In method `int Server::handle_connection()':
ex1.cpp:24: `LM_ERROR' undeclared (first use this function)
ex1.cpp:24: (Each undeclared identifier is reported only once
ex1.cpp:24: for each function it appears in.)
ex1.cpp:24: implicit declaration of function `int ACE_ERROR_RETURN(...)'
ex1.cpp:26: `LM_DEBUG' undeclared (first use this function)
ex1.cpp:26: implicit declaration of function `int ACE_DEBUG(...)'
ex1.cpp:32: implicit declaration of function `int ACE_ERRO(...)'
ex1.cpp: In method `int Server::accept_connections()':
ex1.cpp:50: implicit declaration of function `int ACE_ERROR(...)'
gmake: *** [.obj/ex1.o] Error 1
now the makefile includes tons of files so I would think that those are
defined in there. I copied the example verbatum from Hughes
(http://www.cs.wustl.edu/~schmidt/PDF/ACE-tutorial.pdf). Is there something
I should add so that the compiler can see the defs of the LM_* macros.
Thanks a lot for your help. I can't wait to get the hang of ACE.
Nash