Ken,

You helped me with the original 'c' wrapper and were correct with this one.
The supplier did indeed use the 'extern declarator' to work around internal
routine name mangling.

All I really had to do was add any new libraries and perform a new
make/build.

Thanks again.

Vance Alspach
J & L Industrial Supply



                                                                                
                                                             
                      "[EMAIL PROTECTED]                                        
                                                        
                      n.net" <ken_wallis             To:       
[EMAIL PROTECTED]                                                  
                      Sent by:                       cc:                        
                                                             
                      [EMAIL PROTECTED]        Subject:  RE: [U2] CALLC - 
unidata                                                      
                      er.u2ug.org                                               
                                                             
                                                                                
                                                             
                      11/21/2004 10:05 PM                                       
                                                             
                                                                                
                                                             
                      Please respond to                                         
                                                             
                      u2-users                                                  
                                                             
                                                                                
                                                             
                                                                                
                                                             




Vance Alspach wrote:
> Unidata 6.0
> HP/UX 11.11
>
> This list was instrumental in assisting me with my
original
> implementation of a third-party address correction
> application/program using an external 'C' program
interface.  The
> original code was written in 'C' but the vendor has
upgraded to C++
> and only support that version of their application. Since
Unidata
> does not have a C++ build, how do I integrate the C++
routine with my
> makeudt?

Carefully Vance ;^)

There should be nothing fundamental which prevents 'C' code
from calling 'C++' routines, but the argument handling and
internal routine name mangling/decoration are completely
different.

makeudt only knows how to generate code to call standard 'C'
routines, so what you have to do is create standard 'C'
routines which call your supplier's C++ library functions.
You may need to build your routines into a library of their
own so that you can solve the linking issues between your
'C' and the supplier's 'C++' in isolation without the
makeudt complication.  You would then just have to set up
your cfuncdef_user so that makeudt knew how to find your
routines in your library, and didn't need to know anything
about the supplier's libraries.  This of course, implies
that your supplier's library is a shared object library, and
that the library you build of your own routines may also
need to be a shared library so that you can pre-link it and
set up all the dependencies inside it, rather than trying to
get makeudt to build the whole thing statically.

HTH,

Ken
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

[demime 1.01d removed an attachment of type image/gif which had a name of 
graycol.gif]

[demime 1.01d removed an attachment of type image/gif which had a name of 
ecblank.gif]

[demime 1.01d removed an attachment of type image/gif which had a name of 
pic08456.gif]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to