From: frank zago <fzago-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
To: ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: building RDMA perftests with g++
Date: Tue, 17 May 2011 15:03:51 -0500 [thread overview]
Message-ID: <4DD2D4A7.5090101@systemfabricworks.com> (raw)
In-Reply-To: <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
On 05/17/2011 02:55 PM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
> Has this issue been confirmed or debunked?
AFAIK, this style of initialization is not supported by C++.
struct addrinfo hints = {
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM
};
If you want to use a c++ compiler, you'll have to change the code. Something like
struct addrinfo hints = { 0 };
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
Frank.
>
> Ed
>
>
> Quoting ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org:
>
>> Ido,
>> Have you had opportunity to check into this?
>> Ed
>>
>> Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>>
>>> Hey Ed ,
>>>
>>> I'm Ido , perftest maintainer , I will check the issue now , and report
>>> you back.
>>>
>>> In general , every c program can be compiled with g++ ?
>>>
>>> Ido
>>>
>>> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>>> I have what is probably a silly question....
>>>>
>>>> If I compile the rdma_bw example from perftests with g++, it doesn't work... granted I have to make a few changes wrt structure initialization, but I would think it should behave as when built with gcc... I am getting an error message in pp_client_init/pp_server_init that ai_family SOCK_STREAM is not support for the port. If I use cma I get an unrecognized event on the client side... Am I missing something? I am trying to develop some C++ classes with RDMA/verbs.
>>>> Thanks,
>>>> Ed
>>>>
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-05-17 20:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 3:20 building RDMA perftests with g++ ib-x2spCj9RiN0z5UmgcLIfJQ
[not found] ` <20101117202015.rs5zkzhbkskwsw4s-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2010-11-18 10:31 ` Ido Shamai
[not found] ` <4CE5009F.90001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2010-12-01 16:24 ` ib-x2spCj9RiN0z5UmgcLIfJQ
[not found] ` <20101201092419.5r5mqsv1cg8cso0w-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-17 19:55 ` ib-x2spCj9RiN0z5UmgcLIfJQ
[not found] ` <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-17 20:03 ` frank zago [this message]
[not found] ` <4DD2D4A7.5090101-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
2011-05-17 20:09 ` ib-x2spCj9RiN0z5UmgcLIfJQ
[not found] ` <20110517140952.qf0bmi5yg48c4gsg-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-18 7:01 ` Ido Shamai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DD2D4A7.5090101@systemfabricworks.com \
--to=fzago-klaocwyjdxkshymvu7je4pqqe7ycjdx5@public.gmane.org \
--cc=ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.