From mboxrd@z Thu Jan 1 00:00:00 1970 From: frank zago Subject: Re: building RDMA perftests with g++ Date: Tue, 17 May 2011 15:03:51 -0500 Message-ID: <4DD2D4A7.5090101@systemfabricworks.com> References: <20101117202015.rs5zkzhbkskwsw4s@celticblues.com> <4CE5009F.90001@dev.mellanox.co.il> <20101201092419.5r5mqsv1cg8cso0w@celticblues.com> <20110517135503.1jnew49yc8co08k8@celticblues.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.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 : >> >>> 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