Chapter 17 Creating CORBA C++ Clients
To compile your C++ client in your C++ development environment, make sure to:
-DJAG_NO_NAMESPACE -z muldefs
For example, you can use this shell script to compile the C++ client tutorial, arith.cpp, on Solaris:
#!/bin/sh
CC -DJAG_NO_NAMESPACE -z muldefs -I. -I$JAGUAR/include \
-L$JAGUAR/lib -ljcc -l nsl \
-l dl -l thread -l m -o arith arith.cpp
For example, you can use this batch file to compile the C++ client tutorial, arith.cpp, on NT:
SETLOCAL
set INCLUDE=.;%JAGUAR%\include;%INCLUDE%
set LIB=%JAGUAR%\lib;%LIB%
cl /W3 /nologo /DWIN32 /Gd /GX -c arith.cpp
set SYSLIBS=kernel32.lib advapi32.lib
link /MAP /out:arith.exe arith.obj libjcc.lib %SYSLIBS%
ENDLOCAL
Copyright © 2000 Sybase, Inc. All rights reserved. |