[omniORB] Not able to compile through Developer studio
Nathan Pillai
psi_nathan@yahoo.com
Wed, 4 Apr 2001 13:53:56 -0700 (PDT)
Hi,
I am able to compile and run the echo example using
the nmake utility from the command line.
However, when I try to compile through MS Developer
Studio for VC++ version 6.0 (Enterprise edition) – OS
Win 2k, I am getting error.
The ‘echo.idl’ was compiled on command line using
‘onmiidle echo.idl. Is there any way to include the
idl file also in the project and compile it through
the developer studio ?
The following is the build log.
Command Lines
Creating temporary file
"C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP81.tmp" with
contents
[
/nologo /MD /W3 /Gm /Gi /GX /ZI /I
"D:\omniORB_280\include" /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /D "__WIN32__" /D "__x86__" /D
"__NT__" /D __OSVERSION__=4 /FR"Debug/"
/Fp"Debug/Echo.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD
/GZ /c
"D:\Nathan\VC++\EchoWS\echoSK.cpp"
]
Creating command line "cl.exe
@C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP81.tmp"
Creating temporary file
"C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP82.tmp" with
contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
wsock32.lib advapi32.lib omniORB280_rtd.lib
omnithread2_rtd.lib /nologo /subsystem:console
/incremental:yes /pdb:"Debug/Echo.pdb" /debug
/machine:I386 /out:"Debug/Echo.exe" /pdbtype:sept
/libpath:"D:\omniORB_280\lib\x86_win32"
".\Debug\echoSK.obj"
]
Creating command line "link.exe
@C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP82.tmp"
Output Window
Compiling...
echoSK.cpp
d:\nathan\vc++\echows\echo.hh(163) : error C2504:
'proxyObjectFactory' : base class undefined
d:\nathan\vc++\echows\echosk.cpp(4) : error C2065:
'omniORB_2_7' : undeclared identifier
d:\nathan\vc++\echows\echosk.cpp(4) : error C2440:
'initializing' : cannot convert from 'int' to 'const
char *'
Conversion from integral type to pointer type
requires reinterpret_cast, C-style cast or
function-style cast
Error executing cl.exe.
Results
Echo.exe - 3 error(s), 0 warning(s)
Visual studio has been configured according to :
a) Add the stub (SK.cpp) files generated by the IDL
compiler to the project
(Insert->"Files into Project")
b) Set up the search paths for include and library
files:
1. Under Tools->Options, select the Directories
tab.
2. In the "Show directories for" box, select
"Include files".
3. Add the directory where you installed the
omniORB2 include files to the
list (this is <Top-Level Directory>\include).
4. In the "Show directories for" box, select
"Library files".
5. Add the directory where you installed the
omniORB2 library files to the
list (this is <Top-Level
Directory\lib\x86_win32).
c) Set up macros and libraries:
1. Under Build->Settings, select the "C/C++" tab.
2. In the "Category" box, select "C++ Language".
Tick the
"Enable exception handling" box.
3. In the "Category" box, select "Code
Generation". In the
"Use run-time library" box, select
"Multithreaded DLL".
4. **This is an import step.**
In the "Category" box, select "Preprocessor".
In the
"Preprocessor" box, add the macros
__WIN32__,__x86__.
If this is NT 4.0, add the macros __NT__ and
__OSVERSION__=4 as well.
5. Select the "Link" tab.
6. In the "Category" box, select "Input". In the
"Object/library modules"
box, add the following libraries: wsock32.lib,
advapi32.lib,
omniORB280_rt.lib, omnithread2_rt.lib
If you are building a debug executable, the debug
version of the libraries:
omniORB280_rtd.lib and omnithread2_rtd.lib should
be used.
d) Your project is now set up, and you can build it.
Is there any additional config. To be done ?
Thanks,
Nathan
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/