From owner-freebsd-ports@freebsd.org Thu Oct 26 02:05:01 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8A00E5AFB5; Thu, 26 Oct 2017 02:05:01 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A239965BB4; Thu, 26 Oct 2017 02:05:01 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x231.google.com with SMTP id l196so3276579itl.4; Wed, 25 Oct 2017 19:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=b/37tUJoA4pOuZBEdWXEJOn436wSfbWXyitMZcgaDl8=; b=T3rxUPxMbCEoG8U80zvbVKu+fXEr2KW2Lcj6Eo+41wEj3r1zLdvdRKO2wVz2LN3lrf pGkHVKK9WA/5XWDoCfbmIcXmeZEMVfv7GN/78vAfMGDGt++dFCtMsb1oGVJovb3KyF4n 1Czp6Um6P+9f2K2ekveBGIq/fFU4tslQMfG2KgfUgEWZCm+5a+coMADgL7BsUNPgQbl+ rm0vTKaddvmAApNP+B+Ac/NoIHf/XA6u/xZeqkxH9f657buIKbeWVt3799SMFqVI3WP0 kCwkhn6Jzkm4+wQYOYtTnMrAsxcKkZdwxoEOviyQPzEVADbMneDEKw+02oqBPQGFJ/n9 zUyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b/37tUJoA4pOuZBEdWXEJOn436wSfbWXyitMZcgaDl8=; b=WVlDAt+RhVAoTWUbrw6/0Opx4WuKKWFo3WXZZftXctV2rtAR7U27G6yqSLs46obLXh cs42EbwpK6vW8IYkQGYubBT87O6R4wH0vfk04Nkd2cg+ETyjun2VXIn2iEqkHL8psDw7 2AeQzIZ/6zJuQrfxYPQYI4Djd5nXSqdQy7oArglXvQxE7vWSn6NV+sGeu2CRr8Ibp6ar Oa5Y1qeT7feSHsdX53i+om5uNlfoKEcFO/59nKXKvVMvz9gNHOljY/BIBXYUA4CPpqf/ xhjUC/nwsDN+OT2alfQvDoF/c9bLnihwXh9jB7lWa8XKvI1orEiwOuA961P1cI7fYzsU dvKQ== X-Gm-Message-State: AMCzsaXY3hLR0P2JDz45/pVi6DCx/T5GqDibOXldBk9Ea9uMpTi1wRxW fV0g5LjG0xRem9M/j0VwWHfAME+z3j4gJFxBgUlSi2Aw X-Google-Smtp-Source: ABhQp+T5TQbkXHpFNn5SR31imELrhsgkglP/caKw6puvLcl/9Yjbknp+Vmu+/kJHtdouhLKDSTJaQkoF6bdEphRqaGY= X-Received: by 10.36.139.130 with SMTP id g124mr441082ite.100.1508983500655; Wed, 25 Oct 2017 19:05:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Wed, 25 Oct 2017 19:05:00 -0700 (PDT) From: blubee blubeeme Date: Thu, 26 Oct 2017 10:05:00 +0800 Message-ID: Subject: can't link against math.h To: FreeBSD Ports , FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 02:05:02 -0000 I wrote a simple test program to test and see if math.h has the function: exp10f #include int main(int argc, char** argv) { (void)argv; return ((int*)(&exp10))[argc]; } tried compiling it with clang: clang++ test.cpp -o test -lm test.cpp:7:17: error: use of undeclared identifier 'expf10' return ((int*)(&expf10))[argc]; ^ 1 error generated. tried with gcc: gcc test.cpp -o test -lm test.cpp: In function 'int main(int, char**)': test.cpp:7:17: error: 'expf10' was not declared in this scope return ((int*)(&expf10))[argc]; Does FreeBSD math.h have expf10 and if so, how do I link against it?