From owner-freebsd-ports@freebsd.org Thu Oct 26 02:53:08 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 B6318E38976 for ; Thu, 26 Oct 2017 02:53:08 +0000 (UTC) (envelope-from christopherhall.hsw@gmail.com) Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (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 83FFB678B9 for ; Thu, 26 Oct 2017 02:53:08 +0000 (UTC) (envelope-from christopherhall.hsw@gmail.com) Received: by mail-pg0-x242.google.com with SMTP id y5so1551232pgq.7 for ; Wed, 25 Oct 2017 19:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rnalxtLhCSYZFbF+odk4m66BqvLwNFzlZsdTrPdhdAE=; b=BpuNmSG/VvokHBcgQRhrmY5jpEj+Snp68GLu2Xr91m1Mpt2E0z52tnfgSy7jfFCeRb SOLd3SaaMHuMA4wMLLNCb9cNF4mf2MUKUzeUb2s3coT0P4pln4x07jp73BIzaU53FU6a aqvqibFVind9qHAaO99KWo7zMrAYSBxKQLGrefYAt8vFDHnrDyqETw7DzdS4jYfbKKX7 KKg03aDqPJbXa9WwQX9C8RElBaE9hHHfhhwDjQtRxUP/zdHLPEdPqqnRYi0RloBpS4ud li2idQcSGsBdMxZRugoAbwZxhStoFJoovJboK7xskA7Hir4mJsioBNbGyvd9Oq6OKnQx OiQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rnalxtLhCSYZFbF+odk4m66BqvLwNFzlZsdTrPdhdAE=; b=b2YK1+DUyUL0SMy4AypkNIGSSVDkleRlVxfyFvMTtcMgFscMHX14K30jA1ol6r3uxD oDwDYdRwEbEGpZhCVls+xKB/WL9qZkZrYXdwveecoBDFBZv9SoCimwWHvJTSWvTgHJ8P V1/8WPbe865c0zNU5MGTH0KVSlr9FUlc3iSVBHIevPAV5xm4h2JiPf0tUFK301BNc5aw DcEnt60z4sFfORrcTcmKiQbU/HmUsSFXDflmIXRDGO43KbUcg6z1f5v3Oa+xLFLPdeJh 1/kwNea90y6oBReS6QU9z+ILSC8ZQbzRWD1nsNjukU5/S6jy9gWJ7/biJMAzPt1VpIAg lCzw== X-Gm-Message-State: AMCzsaV+e1WIx3ifWmOFcHngV56y2EnPpW4h5+bPpWkxvY3AIEiyIaIt uTRZPIq/ZWV6VrXAfl0Tryg= X-Google-Smtp-Source: ABhQp+S7k97TBrzr57C1FHxq9H0MyGBoyg995vewDLEFo555HU8XxAiBA/OtvFOdlAJcvCitqbiiwg== X-Received: by 10.159.214.149 with SMTP id n21mr3330346plp.336.1508986388050; Wed, 25 Oct 2017 19:53:08 -0700 (PDT) Received: from arria.bitmark.lan (2001-b030-2314-0200-f279-59ff-fe6a-4741.hinet-ip6.hinet.net. [2001:b030:2314:200:f279:59ff:fe6a:4741]) by smtp.gmail.com with ESMTPSA id k7sm7026691pgc.4.2017.10.25.19.53.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2017 19:53:07 -0700 (PDT) Date: Thu, 26 Oct 2017 10:53:01 +0800 From: Christopher Hall To: blubee blubeeme Cc: FreeBSD Ports Subject: Re: can't link against math.h Message-ID: <20171026105301.071a4302@arria.bitmark.lan> In-Reply-To: References: X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:53:08 -0000 Hello blubee, On Thu, 26 Oct 2017 10:05:00 +0800, blubee blubeeme wrote: > I wrote a simple test program to test and see if math.h has the > function: exp10f grep -r exp10f /usr/include shows that is does not. I could not find this function in man pages either and also http://en.cppreference.com/w/c/numeric/math/exp does not list it. log10 exists but did not see and kind of exp10. Could you have been thin of a macro you saw in an app? the only ref I found from searching ports/math was: /usr/ports/math/ldouble/files/i386-makefile-patch: exp10l.o exp2l.o expl.o expx2l.o fdtrl.o gammal.o gdtrl.o igamil.o igaml.o \ > > #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? > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" -- Best Regards. Christopher Hall.