From owner-freebsd-questions@FreeBSD.ORG Mon Aug 31 14:20:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BD9D1065670 for ; Mon, 31 Aug 2009 14:20:17 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out9.libero.it (cp-out9.libero.it [212.52.84.109]) by mx1.freebsd.org (Postfix) with ESMTP id 1F73F8FC2A for ; Mon, 31 Aug 2009 14:20:16 +0000 (UTC) Received: from soth.ventu (151.51.189.10) by cp-out9.libero.it (8.5.107) id 4A92A0CB00583F85; Mon, 31 Aug 2009 16:20:15 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.3/8.14.2) with ESMTP id n7VEKBnH090558; Mon, 31 Aug 2009 16:20:11 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4A9BDC19.5060207@netfence.it> Date: Mon, 31 Aug 2009 16:20:09 +0200 From: Andrea Venturoli User-Agent: Thunderbird 2.0.0.23 (X11/20090828) MIME-Version: 1.0 To: Daniel Underwood , freebsd-questions@freebsd.org References: <4A71455C.2070506@netfence.it> <4A9B9300.80603@netfence.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [SOLVED] Re: OpenMP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 14:20:17 -0000 Daniel Underwood ha scritto: >> However, the program crashes with a Bad system call as soon as it calls >> std::getline. > > Can we see the code? No, sorry (not my code, not my decision). However, I solved this issue: as I said, I linked with g++42 -o test.exe test.o lib.a -L/usr/local/lib -lstdc++ -lm -lGL -lc -fopenmp I found out "-lstdc++", "-lm" and "-lc" are not needed any more, though I can't trace at which point they were (older FreeBSD? older gcc? ...?). Removing "-lc" the "Bad system call" doesn't show up anymore. Thank you very much for your help. bye av.