From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,8a0826014dfc742e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-07 12:46:51 PST Path: gmd.de!xlink.net!howland.reston.ans.net!gatech!enterpoop.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.osf.misc Subject: Re: peer to peer impossible in dce? Date: 7 Jun 1993 19:28:23 GMT Organization: Open Software Foundation Message-ID: <1v04sn$rjj@paperboy.osf.org> References: <1993Jun7.151247.2332@walter.bellcore.com> NNTP-Posting-Host: earth.osf.org In <1993Jun7.151247.2332@walter.bellcore.com> grd@scherzo.bellcore.com (Glen Diener) writes: >X cannot, for example, link both the client stub, >the server stub, and a method definition for ping()...the method >definition will end up clashing with a definition for ping in >the client stub, and produce a multiply-defined symbol at link time. You should be able to do this by doing the following: - Write your "ping" operation implementation, but call it something like my_ping_op or some such. - Take a look at the generated server_stub file and pull out the manager_epv part -- it will be a custom structure that has one function pointer for each operation. - Copy the variable (separating the variable from its typedef may be tricky :-) into one of your server source files and replace "ping" with my_ping_op. - Run IDL with the -no_mepv flag. Compile and link as normal.