From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13628 Path: news.gmane.org!.POSTED!not-for-mail From: Michele Portolan Newsgroups: gmane.linux.lib.musl.general Subject: New to musl and C++ compiling Date: Mon, 21 Jan 2019 11:24:12 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ciao.gmane.org 1548066263 212790 195.159.176.228 (21 Jan 2019 10:24:23 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2019 10:24:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 To: musl@lists.openwall.com Original-X-From: musl-return-13644-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 21 11:24:21 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by ciao.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1glWka-000tF8-Te for gllmg-musl@m.gmane.org; Mon, 21 Jan 2019 11:24:17 +0100 Original-Received: (qmail 26291 invoked by uid 550); 21 Jan 2019 10:24:25 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26252 invoked from network); 21 Jan 2019 10:24:24 -0000 Content-Language: en-US X-Greylist: Whitelist-UGA SMTP Authentifie (portolam@univ-grenoble-alpes.fr) via smtps-465 ACL (99) Xref: news.gmane.org gmane.linux.lib.musl.general:13628 Archived-At: Hello, I just installed MUSL because I have a C++ multithreaded application that uses threads heavily and I would like to make it independent from an OS. I was able to easily install and run MUSL for C targets, but when I try a simple C++ Hello world I get an error for the standard libs. My file is the simplest possible (no multithreading to start with):  #include  int main() {           std::cout << "Hello, World" << std::endl;           return 0; } Here is my output for standard and musl-based compilation. portolan@noumea:~/musl/examples$ g++ -o test_cpp test_cpp.cpp portolan@noumea:~/musl/examples$ ./test_cpp Hello, World portolan@noumea:~/musl/examples$ g++ -o test_cpp test_cpp.cpp -specs "/home/portolan/musl/install/lib/musl-gcc.specs" test_cpp.cpp:1:11: fatal error: iostream: No such file or directory   #include            ^~~~~~~~~~ compilation terminated. I am probably missing something REALLY basic, at least I hope so! Best regards, Michele