[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mico-devel
Subject:    AW: AW: AW: AW: [mico-devel] MICO 2.3.11 compile errors with vc++ 7
From:       "Rippich, Andrej" <A.Rippich () psi-bt ! de>
Date:       2005-08-24 8:59:52
Message-ID: 15BAAB70DE89FA41895850591BB15F80A245FC () INFRA-BLN-EX2K ! psi ! de
[Download RAW message or body]

Thank you.

-----Ursprüngliche Nachricht-----
Von: Sorin Mustaca [mailto:msorin@gmx.net]
Gesendet: Mittwoch, 24. August 2005 10:36
An: Rippich, Andrej
Cc: mico-devel@mico.org
Betreff: Re: AW: AW: AW: [mico-devel] MICO 2.3.11 compile errors with
vc++ 7


Hi,

Sorry for the delay. I tried to get some feedback from Microsoft. But .. it looks \
like I am on their black list somehow ...

I isolated the problem (it was the easiest part :) ) :
This interface : model::AbstractSession and
the method model::AbstractSession::_narrow( CORBA::Object_ptr _obj )

  model::AbstractSession_stub* _o;

  if( !CORBA::is_nil( _obj ) ) {
    void *_p;
    if( (_p = _obj->_narrow_helper( "IDL:com.psibt.framework.nube/model/Subject:1.0" \
)))  return _duplicate( (model::Subject_ptr) _p );
    if (!strcmp (_obj->_repoid(), "IDL:com.psibt.framework.nube/model/Subject:1.0") \
|| 		 _obj->_is_a_remote ("IDL:com.psibt.framework.nube/model/Subject:1.0")) {
      _o = new model::Subject_stub;
/*here*/      _o->CORBA::Object::operator=( *_obj );
      return _o;
    }
  }

But, I must say that this makes no sense ...
model::AbstractSession_stub* _o is derived from CORBA::Object . This should work ...
So, I assume that there is a bug in the compiler.

If is possible, send me the IDL file used to generated this. I will try to change \
some things and see if it works.
You can do it by yourself by changing(where possible) the order of modules
declarations/definitions and also try to separate them in different files.

Rippich, Andrej said the following on 24.08.2005 00:28:
> Hi,
> exuse me, have you tried to compile the new files i've sent ?
> Can you give me a hint working arround the problem ?
> Thanks in advance
> Andrej
> 
> -----Ursprüngliche Nachricht-----
> Von: Sorin Mustaca [mailto:msorin@gmx.net]
> Gesendet: Dienstag, 16. August 2005 13:16
> An: Rippich, Andrej
> Cc: mico-devel@mico.org
> Betreff: Re: AW: AW: [mico-devel] MICO 2.3.11 compile errors with vc++ 7
> 
> 
> 
> 
> Rippich, Andrej said the following on 16.08.2005 12:06:
> 
> > The idl files are ok, because i'm using them successfully with serval java orb \
> > (jacorb, openorb, visibroker).  I've used the idl with vc++ 6.0 and mico 2.3.6 \
> > without (or only marginal-) problems.
> 
> Yes, but this doesn't necessarily mean that have to work with MICO 2.3.11 (or 12RC)
> 
> > Exception handling was enabled.
> 
> Good. If you use the defaults in makevars.win32, then there should be no problem.
> 
> > Unfortunately i've send you the wrong files.
> > As a work arround for the compiler errors you've seen, i've removed references to \
> > missing types declarations like "valString_ptr"  (This task was also nessesary \
> > whith version 2.3.6). You will find them uncommented in "model.hxx".
> 
> That's not good and this should not be used as a solution.
> If there is a problem with the generated files, then we have to solve the problem \
> in generator. 
> 
> > The idl compiler is missing to generate the declarations.
> 
> Strange... Can you send the IDL files ?
> (all of them if you have "include"-s. ( and I assume you don't, because I haven't \
> seen any include in the generated file) )
> 
> 
> > I have'nt changed anything else in the generated files. 
> 
> That's already too much. :(
> 
> 
> I'll later have a look on the new files you sent.
> 
> 
> > Best regards
> > Andrej
> > 
> > 
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: Sorin Mustaca [mailto:msorin@gmx.net]
> > Gesendet: Dienstag, 16. August 2005 10:34
> > An: Rippich, Andrej
> > Cc: mico-devel@mico.org
> > Betreff: Re: AW: [mico-devel] MICO 2.3.11 compile errors with vc++ 7
> > 
> > 
> > A couple of possible problems:
> > 1.  Add /EHsc flag for enabling exceptions in MSVC
> > 
> > 2. There might be something wrong with your definitions. Or with the order of \
> > includes of the sub-IDL files in the main IDL file... (I guess :) )
> > 
> > For example, you declare in the IDL file a module called 'model' but the compiler \
> > has no idea where is it defined. (Did you remove something from the hxx file ? \
> > (like a #include statement) 
> > These are the errors I got: (removed the warnings from  1.)
> > 
> > e:\corba\test\model.hxx(212) : error C2039: 'valString_ptr' : is not a member of \
> > 'model' e:\corba\test\model.hxx(212) : error C2146: syntax error : missing ';' \
> > before identifier 'EmployeeNumber_ptr'
> > e:\corba\test\model.hxx(212) : error C2501: 'EmployeeNumber_ptr' : missing \
> > storage-class or type specifiers
> > e:\corba\test\model.hxx(213) : error C2039: 'valStringRef' : is not a member of \
> > 'model' e:\corba\test\model.hxx(213) : error C2146: syntax error : missing ';' \
> > before identifier 'EmployeeNumberRef'
> > e:\corba\test\model.hxx(213) : error C2501: 'EmployeeNumberRef' : missing \
> > storage-class or type specifiers
> > 
> > 
> > Rippich, Andrej said the following on 15.08.2005 17:22:
> > 
> > 
> > > Hi,
> > > thank you for the fast answer.
> > > I'm using the STL shipped with the compiler.
> > > The concrete error message is: 
> > > "c:\nc\nubeclient\src\model.cxx(4061): fatal error C1001: INTERNAL COMPILER \
> > > ERROR (compiler file 'msc1.cpp', line 2712) 
> > > Please choose the Technical Support command on the Visual C++ 
> > > Help menu, or open the Technical Support help file for more nformation"
> > > I have attached the source files where the error occur.
> > > The method is: "model::AbstractSession_ptr
> > > model::AbstractSession::_narrow( CORBA::Object_ptr _obj )"
> > > model.cxx line 4061.
> > > Best regards
> > > Andrej
> > > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Sorin Mustaca [mailto:msorin@gmx.net]
> > > Gesendet: Montag, 15. August 2005 15:56
> > > An: Rippich, Andrej
> > > Cc: mico-devel@mico.org
> > > Betreff: Re: [mico-devel] MICO 2.3.11 compile errors with vc++ 7
> > > 
> > > 
> > > Hi,
> > > More details please ?
> > > What class is it compiling ?
> > > And what STL are you using ? The one shipped with MSVC or a 3rd party ?
> > > Send me the class, pls.
> > > 
> > > Thanks
> > > 
> > > Rippich, Andrej said the following on 15.08.2005 15:39:
> > > 
> > > 
> > > 
> > > > Hi,
> > > > when trying to compile the classes generetad with mico 2.3.11. idl compiler, \
> > > > i'm getting an internal compiler error "C1001" iternal compiler error ... \
> > > > Microsoft provides a patch which should solve this problem. But after the \
> > > > installation of the patch the problem still remain.  Any ideas how to solve \
> > > > this error ? Unfortunately i must use vc++ because mico is only a small part \
> > > > of a large mfc based project. Thanks in advance.
> > > > Andrej
> > > > 
> > > > _______________________________________________
> > > > Mico-devel mailing list
> > > > Mico-devel@mico.org
> > > > http://www.mico.org/mailman/listinfo/mico-devel
> > > > 
> > > > 

_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic