[omniORB] Newbie - Compiler Error on MacOSX for Echo Tutorial

bido@mac.com bido@mac.com
Tue Nov 26 00:49:00 2002


Thanks Duncan,  I was just going through the files in the Echo dir and 
came across a some references to x86 and thought "what the heck might 
as well give those a look" since the usual make didn't work even with 
the DYLD_LIBRARY_PATH  var set.

I had DYLD_LIBRARY_PATH = /usr/local/omni_inst/lib and was able to run 
omniidl and omniNames  so at that point I assumed that this var was set 
correctly.

Nevertheless, when running make from the Echos dir, I got messages 
about missing header files etc. I copied over the necessary files from 
the install dir into the appropriate locations relative to Echos dir 
and got a little bit further.  This time I'm getting:

[122:src/examples/echo] bido% make
/usr/bin/c++ -c -O2 -Wall -Wno-unused -D__OMNIORB4__ -I../../../stub  
-I. -I. -I../../../include -D__powerpc__ -D__darwin__ -D__OSVERSION__=1 
-o eg1.o eg1.cc
In file included from ../../../include/omniORB4/omniInternal.h:200,
                  from ../../../include/omniORB4/CORBA.h:310,
                  from ../../../stub/echo.hh:10,
                  from eg1.cc:11:
../../../include/omniORB4/CORBA_basetypes.h:144: warning: use of `long 
double'
    type; its size may change in a future release
../../../include/omniORB4/CORBA_basetypes.h:144: warning: (Long double 
usage is
    reported only once for each file.
../../../include/omniORB4/CORBA_basetypes.h:144: warning: To disable 
this
    warning, use -Wno-long-double.)
In file included from ../../../include/omniORB4/CORBA.h:444,
                  from ../../../stub/echo.hh:10,
                  from eg1.cc:11:
../../../include/omniORB4/dynAny.h:148: `LongDoubleSeq' undeclared in 
namespace
    `CORBA'
../../../include/omniORB4/dynAny.h:148: `value' was not declared in 
this scope
../../../include/omniORB4/dynAny.h:148: virtual outside class 
declaration
../../../include/omniORB4/dynAny.h:148: variable or field `
    insert_longdouble_seq' declared void
../../../include/omniORB4/dynAny.h:168: warning: ISO C++ forbids 
declaration of
    `LongDoubleSeq' with no type
../../../include/omniORB4/dynAny.h:168: invalid use of `::'
../../../include/omniORB4/dynAny.h:168: `LongDoubleSeq' declared as a 
`virtual'
    field
../../../include/omniORB4/dynAny.h:168: parse error before `*' token
make: *** [eg1.o] Error 1


For this one I'm out of ideas. Can anyone assist, I think I'm pretty 
close to getting it to work.

Thanks,
-FB


On Monday, November 25, 2002, at 02:54  PM, Duncan Grisby wrote:

> On Monday 25 November, bido@mac.com wrote:
>
>> To provide further clarification for PROBLEM 2:
>>
>> My system does not have an nmake command. So I can execute
>>
>> nmake /f dir.mak [<build option>]
>
> You are very confused. You are reading the instructions for Windows,
> so it's not surprising it doesn't work on MacOS.
>
> You just need to run make in the build/src/examples directory.
>
> After that, set DYLD_LIBRARY_PATH=/usr/local/lib and run the examples.
>
> Cheers,
>
> Duncan.
>
> -- 
>  -- Duncan Grisby         --
>   -- duncan@grisby.org     --
>    -- http://www.grisby.org --
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list