bsd network and C++

Peter Müller peter.o.mueller at gmx.de
Sat Jun 30 18:52:12 UTC 2001


Rosimildo da Silva wrote:

> From: "Peter Müller" <peter.o.mueller at gmx.de>
> To: "rtems" <rtems-users at oarcorp.com>
> Sent: Saturday, June 30, 2001 7:46 AM
> Subject: bsd network and C++
> 
> 
>> Hi all,
>> 
>> I have problems to use the bsd network from within C++ code. Having a
>> plain C application using the network is not a problem. But even
>> initializing the stack is not successful in C++. I wonder about that all
>> the network headers are not surrounded by extern "C" ... It was
>> necessary to do this in my c++ file to satisfy the linker.
>> 
>> Any ideas?
>> Peter
>> 
>> P.S: I use a m68k target and a linux host.
>> 
> 
> It could be a BSP specific bug.
> 
> Some packages such as OmniOrb and ACE/TAO are very
> complex applications, both use network and are written in C++.
> 
> I have tested OmniORB on pc386 and it works ok.
> 
> Maybe if you post a simple test demo( source ) that fails on you BSP,
> people might be able check on others BSP if it works.
> 
> Rosimildo.
> 
Here is my test code. Would be great if you could test it.

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp.taz
Type: application/octet-stream
Size: 3948 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20010630/ab703aaf/attachment-0001.obj>


More information about the users mailing list