时使用什么配置选项

时使用什么配置选项

本文介绍了当构建gcc / libstdc ++时使用什么配置选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读后在DLL和EXE之间传递空的 std :: string 对象,我担心用于构建我的gcc / libstdc ++的配置选项。更具体的我想知道在 ./ configure 期间是否使用 - enable-fully-dynamic-string / p>

我在Windows XP上使用MinGW 4.4.0。


  1. 任何人都知道用于构建此版本的配置


  2. 有任何安装GNU gcc的通用方法吗?


感谢您的投入!

解决方案

gcc -v 打印出配置选项:

  $ gcc -v 
使用内置规格。
目标:i686-pc-cygwin
配置为:/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/
configure --srcdir = / gnu / gcc / releases / packaging / 4.3.4-3 / gcc4-4.3.4-3 / src / gcc-4.3。
4 --prefix = / usr --exec-prefix = / usr --bindir = / usr / bin --sbindir = / usr / sbin --libex
ecdir = / usr / lib - datadir = / usr / share --localstatedir = / var --sysconfdir = / etc --inf
odir = / usr / share / info --mandir = / usr / share / man --datadir = / usr / share --infodir = / usr
/ share / info --mandir = / usr / share / man -v --with-gmp = / usr --with-mpfr = / usr --enable
-bootstrap --enable-version-specific-runtime-libs --with-slibdir = / usr / bin --libe
xecdir = / usr / lib --enable-static --enable-shared --enable- shared-libgcc --disable
-__ cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exception
s --enable-languages = ada, cable,c ++,fortran,java,objc,obj-c ++ --disable-symvers --ena
ble-libjava --program-suffix = -4 --enable-libgomp --enable-libssp --enable- libada
--enable-threads = posix --with-arch = i686 --with-tune = generic --enable-libgcj-sub
libs CC = gcc-4 CXX = g ++ - 4 CC_FOR_TARGET = gcc-4 CXX_FOR_TARGET = g ++ - 4 GNATMAKE_FOR_TA
RGET = gnatmake GNATBIND_FOR_TARGET = gnatbind AS = / opt / gcc-tools / bin / as.exe AS_FOR_T
ARGET = / opt / gcc-tools / bin / as .exe LD = / opt / gcc-tools / bin / ld.exe LD_FOR_TARGET = / opt /
gcc-tools / bin / ld.exe --with-ecj-jar = / usr / share / java / ecj .jar
线程模型:posix
gcc版本4.3.4 20090804(发布)1(GCC)


After reading about the problem of passing empty std::string objects between DLLs and EXEs, I am concerned about the configure options used to build my gcc / libstdc++. More specific I want to know if --enable-fully-dynamic-string was used during ./configure.

I'm using MinGW 4.4.0 on Windows XP.

  1. Does anybody know the configuration used to build this release?

  2. Is there a general way to find this information for any installation of GNU gcc? The gcc manual gives me no hint on this topic.

Thanks for your input!

解决方案

gcc -v prints out the configuration options among other stuff:

$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/
configure --srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.
4 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libex
ecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --inf
odir=/usr/share/info --mandir=/usr/share/man --datadir=/usr/share --infodir=/usr
/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable
-bootstrap --enable-version-specific-runtime-libs --with-slibdir=/usr/bin --libe
xecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable
-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exception
s --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers --ena
ble-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada
 --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sub
libs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TA
RGET=gnatmake GNATBIND_FOR_TARGET=gnatbind AS=/opt/gcc-tools/bin/as.exe AS_FOR_T
ARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe LD_FOR_TARGET=/opt/
gcc-tools/bin/ld.exe --with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC)

这篇关于当构建gcc / libstdc ++时使用什么配置选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 21:52