English 中文(简体)
C++ - 关于Fedora 12号海合会第4.4.4号失踪案。
原标题:C++ - stl_alloc.h missing on GCC4.4.4 on Fedora 12?

I am in the process of porting an application from a BSD platform onto a Linux box. When compiling, I have found that some of the header files call for <bits/stl_alloc.h>, which is missing from my computer. Does anyone have any idea as to where I can find this and/or why it is missing?

我正在运行一个有海合会4.4.4的Fedora 12机器。

问题回答

你的错误信息表明,借方名录的档案缺失。 为此,可以采取两种可能的办法:

  1. 你在申请中明确列入了这一档案。 那么,这 s了你的过错,因为它不是一个标准主人,而且可能不列入你的标准。 你们应避免这样做。 与监督厅互动的多数必要机制都设在标准图书馆(或专门设计用于方便运输的其他机构),因此,你们的解决办法比使用特定的STL执行线更好的办法。

  2. 该档案由STL的一些标准负责人间接列入。 事实是,《刑法》在移民问题上的实施是可行的,并可能得到一些发展局的支持。 它的负责人可以有以下守则:

    #ifdef __BSD__
    // BSD-specific include file
    #include <bits/stl_alloc.h>
    #elsif defined __LINUX__
    #include <bits/linux_alloc.h>
    #endif
    

    通常,在短链氯化石蜡上制定的方案将包括正确的档案。 然而,your方案可能在其上界定了BSD f,而这一inger可能会被STL执行错误解释,因为它应当包括BSD特定部分。 如果你仅以发展局为基础,那么你根本就通知了它。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签