द्वारा आवश्यक फ़ाइल को c12+ में bits/c++config.h
नामक कोई फ़ाइल नहीं है, जिसमें cstring
हेडर फ़ाइल द्वारा आवश्यक निर्देशिका शामिल है। लेकिन जब मैं हेडर cstring
हेडर और g++
के साथ संकलित करता हूं, तो यह मुझे त्रुटि नहीं देता है। समस्या तब हुई जब मैंने प्रोग्राम को निम्नलिखित तरीके से clang++
कंपाइलर के साथ संकलित करने का प्रयास किया।g ++ 4.6 अंक संख्या <बिट्स/सी ++ config.h> हेडर cstring
$clang++ -cc1 -I/usr/include -I/usr/include/c++/4.6.1 -I/usr/lib/gcc/i686-linux-gnu/4.6.1 -I/usr/include/i386-linux-gnu -I opt_149739_build/include hello.cpp
In file included from /media/space/hello.cpp:2:
In file included from /media/space/opt_149739_build/include/clang/Driver/Driver.h:13:
In file included from /media/space/opt_149739_build/include/clang/Basic/Diagnostic.h:17:
In file included from /media/space/opt_149739_build/include/clang/Basic/DiagnosticIDs.h:18:
In file included from /media/space/opt_149739_build/include/llvm/ADT/StringRef.h:14:
/usr/include/c++/4.6.1/cstring:42:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
मैं उबंटू 11.04
पर जी ++ 4.6.1 का उपयोग कर रहा क्या गड़बड़ी हुई?
अधिक जानकारी प्रदान कर सकता है, उदाहरण के लिए: जीसीसी का कौन सा संस्करण आप उपयोग करते हैं? किस ओएस पर? और आपकी जीसीसी कमांड लाइन क्या है? – Coren