<br><font size=2 face="sans-serif">One comment is the defines... such as
</font><tt><font size=2>-D_REENTRANT -D__OSVERSION__=2 -D__linux__
-D__x86__</font></tt><font size=2 face="sans-serif"> are compiler/platform
specific....</font>
<br>
<br><font size=2 face="sans-serif">A good general rule (because we use
omniORB on several diff OS/hardware) is to comple the example and capture
the output... that will show you which defines you need....</font>
<br>
<br><font size=2 face="sans-serif">Renny Koshy<br>
President & CEO<br>
<br>
--------------------------------------------<br>
RUBIX Information Technologies, Inc.<br>
www.rubixinfotech.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>BadKnees <a.olsen@flatrate.fo></b>
</font>
<br><font size=1 face="sans-serif">Sent by: omniorb-list-bounces@omniorb-support.com</font>
<p><font size=1 face="sans-serif">10/01/2007 09:39 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">omniorb-list@omniorb-support.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[omniORB] omniORB Environment</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>> Perhaps some kind soul would post a simple makefile
they're using...<br>
<br>
Just in case someone else is wondering about how to get a quick start:<br>
<br>
Copy the bd_client.cc bd_server and the echo_callback.idl to your workspace.<br>
Lay it out like this:<br>
<br>
./IDL/echo_callback.idl<br>
./bd_server.cc<br>
./bd_client.cc<br>
<br>
And here's a simple Makefile:<br>
<br>
PWD = $(shell pwd)<br>
IDL = $(PWD)/IDL<br>
STUB = $(PWD)/.stub<br>
OBJ = $(PWD)/.obj<br>
OMNIROOT = /usr/local/omniorb<br>
IDLC = $(OMNIROOT)/bin/omniidl -bcxx<br>
C++ = g++<br>
CARGS = -c -O2 -Wall -Wno-unused -fexceptions -D__OMNIORB4__
-D_REENTRANT -D__OSVERSION__=2 -D__linux__ -D__x86__<br>
LARGS = -O2 -Wall -Wno-unused -fexceptions<br>
INC = -I$(OMNIROOT)/include/ -I. -I$(STUB)<br>
LIB = -L$(OMNIROOT)/lib -L.<br>
LDF = -lomniORB4 -lomniDynamic4 -lomnithread -lpthread<br>
RM = rm -rf<br>
<br>
all: bd_client bd_server<br>
<br>
$(OBJ):<br>
mkdir $(OBJ)<br>
<br>
$(STUB):<br>
mkdir $(STUB)<br>
<br>
$(STUB)/echo_callbackSK.cc $(STUB)/echo_callback.hh: $(STUB) $(IDL)/echo_callback.idl<br>
cd $(STUB) && $(IDLC) $(IDL)/echo_callback.idl<br>
<br>
$(OBJ)/echo_callbackSK.o: $(OBJ) $(STUB)/echo_callbackSK.cc $(STUB)/echo_callback.hh<br>
cd $(OBJ) && $(C++) $(CARGS) $(INC)
-o $(OBJ)/echo_callbackSK.o $(STUB)/echo_callbackSK.cc<br>
<br>
$(OBJ)/bd_server.o: $(OBJ) $(STUB)/echo_callback.hh bd_server.cc<br>
$(C++) $(CARGS) $(INC) -o $(OBJ)/bd_server.o
bd_server.cc<br>
<br>
$(OBJ)/bd_client.o: $(OBJ) $(STUB)/echo_callback.hh bd_client.cc<br>
$(C++) $(CARGS) $(INC) -o $(OBJ)/bd_client.o
bd_client.cc<br>
<br>
bd_server: $(OBJ)/echo_callbackSK.o $(OBJ)/bd_server.o<br>
$(C++) $(LARGS) $(LIB) $(LDF) -o bd_server
$(OBJ)/bd_server.o $(OBJ)/echo_callbackSK.o<br>
<br>
bd_client: $(OBJ)/echo_callbackSK.o $(OBJ)/bd_client.o<br>
$(C++) $(LARGS) $(LIB) $(LDF) -o bd_client
$(OBJ)/bd_client.o $(OBJ)/echo_callbackSK.o<br>
<br>
clean:<br>
$(RM) $(OBJ) $(STUB) bd_server bd_client<br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
omniORB-list@omniorb-support.com<br>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list<br>
</font></tt>
<br>