Use of CORBA_CLIENT_HEADER macro to make a Salome client
Use of CORBA_CLIENT_HEADER macro to make a Salome client
Hello,
I try to make a salome client as I explained here : http://www.salome-platform.org/forum/forum_10/173044974
I want to port a Linux program to windows program to see if I am able to make my client (WIN32) communicating with Salome (Server on Ubuntu). I succeed to compile and use it on Linux side but I still fail on Windows side.
To make my Salome/CORBA client (to use MEDCoupling CORBA API), I use CORBA_CLIENT_HEADER macro like this :
1 - I generate CALCULATOR_Gen.hh on linux side :
2 - I import it on windows
3 - I include CALCULATOR_Gen thanks to CORBA_CLIENT_HEADER macro :
#include CORBA_CLIENT_HEADER(CALCULATOR_Gen)
where CALCULATOR_Gen.hh is generated by salome.
;
;
;
ouble convergenceCriteria(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field);
ouble a1, ::CORBA:
ouble a2);
ouble norm2(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field);
ouble normL2(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field);
ouble normL1(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field);
ouble normMax(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field);
;
;
ouble convergenceCriteria(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field) = 0;
ouble a1, ::CORBA:
ouble a2) = 0;
ouble norm2(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field) = 0;
ouble normL2(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field) = 0;
ouble normL1(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field) = 0;
ouble normMax(::SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr field) = 0;
;Re: Use of CORBA_CLIENT_HEADER macro to make a Salome client
I don't know how to attach two files
I see two options:
1) put them in an archive file
2) attach the second file to another post

St.Michael
Re: Use of CORBA_CLIENT_HEADER macro to make a Salome client
Previously Saint Michael wrote:
I don't know how to attach two files
I see two options:
1) put them in an archive file
2) attach the second file to another post
St.Michael
Re: Use of CORBA_CLIENT_HEADER macro to make a Salome client
I may have undestand what was happening.
In line :
_CORBA_MODULE_VARINT const ::CORBA::Long OL _init_in_decl_( = 0 );
NO_ERROR has to be an identifier which was not the case in my configuration. There was some conflict with the variable defined in WinError.h.
So I put the right definition for this variables ("0L") and it compiles.
