gcc4.7

    1熱度

    1回答

    我有一個相當大的二進制文件,我一直在GCC(4.1.2)的一個漂亮的舊版本上構建了一段時間。我最近建立它與4.7,但是當我運行它,它具有以下回溯崩潰: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid P

    1熱度

    1回答

    的C++下面的代碼生成在Visual Studio 2008以下警告遞歸: 1>c:...\sample.cpp(6) : warning C4717: 'operator<' : recursive on all control paths, function will > cause runtime stack overflow 如果我使用Sample類的任何情況,該需要運算符<,它實際上會崩

    5熱度

    4回答

    我已經在CentOS,QT 4.7開發和GCC 4.4 我剛剛安裝紅帽開發工具套件1.1,其中包括GCC 4.7 。2,並在make年底,我得到一個錯誤 /usr/bin/ld: ../../bin/Solo: undefined reference to symbol '[email protected]@GLIBC_2.2.5' /usr/bin/ld: note: '[email prot

    2熱度

    1回答

    能否請你描述你怎麼樣安裝的gcc-multilib的和G ++ - 32位debian的機器上的multilib生成64位代碼? 我在我的32位debian系統上安裝了gcc-4.7.2(並且還安裝了binutils-2.23)。當我試着使用-m64標誌編譯一個簡單的Hello World程序作爲 # gcc -m64 hello.c 我收到以下錯誤信息: "hello.c:1:0: sorr

    0熱度

    2回答

    我試圖使它像這樣: QWidgetAction *labelAct = new QWidgetAction(screenMenu); QLabel *label = new QLabel("sadas", screenMenu); labelAct->setDefaultWidget(label); screenMenu->addAction(labelAct); 但標籤是空的:

    7熱度

    2回答

    我收到此錯誤每次,而編譯程序,配置和安裝 有些東西像binutils的,textinfo等。 /usr/local/bin/ld: this linker was not configured to use sysroots collect2: error: ld returned 1 exit status 我想清楚這個知道。 什麼時候會來,什麼是實際問題,以及如何解決它?

    0熱度

    1回答

    我想編譯集羣上的gcc 4.7.3的本地版本。 對於配置: ./configure --prefix=$HOME/opt/gcc-4.7.3 --with-gmp=$HOME/opt/gmp --with-mpfr=$HOME/opt/mpfr --with-mpc=$HOME/opt/mpc --with-libelf=$HOME/opt/libelf 在編譯時我: /home/users/di

    3熱度

    2回答

    我有一段代碼,該代碼在運行std::vector<double> cats並做這樣的事情: std::find_if(cats.begin(), cats.end(), std::isnan<double>); 這個編譯在4.3之前的gcc下,但不再使用gcc 4.7.2編譯。我得到這樣一個錯誤: error: no matching function for call to 'find_if

    2熱度

    2回答

    採取以下代碼片段: struct whatever {}; template < template <typename, typename> class FOX, typename bat> struct wulf {}; template <typename A, typename B, typename C = whatever> struct box; template <t

    6熱度

    1回答

    我最近在我的OS X 10.7系統上安裝GCC 4.7.3和GDB 7.6通過MacPorts的是能夠編譯C++代碼11。我不能使用Apple的自制clang ++和gdb,因爲它不允許我正確調試標準模板庫代碼(例如,如果我解引用列表迭代器,程序崩潰)。 現在,隨着新的GCC/GDB的組合,我有一些奇怪的問題,進入功能。拿這個小例子: #include <stdio.h> class A {