Index | Thread | Search

From:
Thomas Dreibholz <dreibh@simula.no>
Subject:
Re: devel/boost: boost/iostreams zstd linker error
To:
ports@openbsd.org, Brad Smith <brad@comstyle.com>
Date:
Mon, 15 Jun 2026 14:58:12 +0200

Download raw body.

Thread
Hi,

Den 15.06.2026 14:41, skrev Stuart Henderson:
>> clang t1.cc -o t1 -I /usr/local/include/ -I /usr/pkg/include/ -L /usr/local/lib -L /usr/pkg/lib
>> -lboost_iostreams -lstdc++
> You certainly shouldn't be using -lstdc++ with clang on OpenBSD.
> (And I'd be pretty surprised if you should be doing that on FreeBSD).

Indeed, calling clang++ instead of clang would be the correct call:

clang++ t1.cc -o t1 -I /usr/local/include/ -I /usr/pkg/include/ -L 
/usr/local/lib -L /usr/pkg/lib -lboost_iostreams

However, for the BOOST/zstd issue, it does not make a difference.

-- 
Best regards / Mit freundlichen Grüßen / Med vennlig hilsen

=======================================================================
  Thomas Dreibholz

  Simula Metropolitan Centre for Digital Engineering
  Centre for Resilient Networks and Applications
  Stensberggata 27
  0170 Oslo, Norway
-----------------------------------------------------------------------
  E-Mail:dreibh@simula.no
  Homepage:http://simula.no/people/dreibh
=======================================================================