Sponsored Content
Top Forums UNIX for Advanced & Expert Users Gcc g++ on cygwin - configure: error: *** A compiler with support for C++11 language features is req Post 303036526 by wisecracker on Monday 1st of July 2019 05:00:01 AM
Old 07-01-2019
Quote:
Originally Posted by Neo
Maybe just compile the executable outside your cygwin environment (with the correct architecture as a static executable without any dynamically loading libs) and then copy the binary into your cygwin environment.
Not a bad idea, except I have noticed in the past, if one does and the OP needs piping capability on his/her C(++) incarnation it is not easy if at all possible to code for on say a native Windows C(++) compiling environment to run on a UNIX environment.
Be aware of this...
 

9 More Discussions You Might Find Interesting

1. Programming

gcc compiler

i write c++ code it run perfectely with g++ compiler but same code when i compile with GCC compiler it gives linker error , followed these linker error /tmp/ccfZtXOQ.o(.text+0x22): In function `main': conf_system.cpp: undefined reference to `operator new(unsigned int)'... (5 Replies)
Discussion started by: munnu
5 Replies

2. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

3. Programming

New to C/gcc compiler - compile error.

I am new to comiling c/c++ programs with gcc compilier unix - AIX version 5.3 gcc compiler version - 4.0.0 My makefile. # makefile 1.0 08/20/98 #CC = cc CC = gcc ESQL = esql CFLAGS = -Wall DBSLIB= DBSLIB=-L${INFORMIXDIR}/lib/esql -L${INFORMIXDIR}/lib `esql -libs` ALL = hds_near... (9 Replies)
Discussion started by: anish
9 Replies

4. HP-UX

gcc error..compiler cannot create executables

Hi I have locally compiled and installed gcc-4.1.2 in directory /usr/local/pkg/gcc/4.1.2/bin/gcc I want to compile beecrypt using this new compiler , So i have done setenv CC usr/local/pkg/gcc/4.1.2/bin/gcc ( Note this configuration is running properly with older version of... (1 Reply)
Discussion started by: vasanthan
1 Replies

5. Ubuntu

gcc compiler

where to download gcc compiler for ubuntu? how to install? how to build and run "c programs"? screen shots if possible.....:b::D tutorials too:cool: (5 Replies)
Discussion started by: villanarun
5 Replies

6. Ubuntu

./configure command Error while trying to install GCC compiler on unix machine

Hi, I need to install the GCC compiler on a my Linus machine. First step is to run the ./configure command and here we need to specify ./configure --target="target machine name (CPU type-Manufacturer-OS) or other way would be just give the command ./configure and it guesses the target name... (11 Replies)
Discussion started by: viji19812001
11 Replies

7. UNIX for Dummies Questions & Answers

GCC compiler Ld fatal error

Hi all I'm trying to install sudo. When I first ran the sudo configure script it errored saying that I didn't have a C compiler. I have since installed the GCC 3.4.6 package for sol8 from sun freeware. Doing that resolved the no C complier found error. I was then getting an error saying... (1 Reply)
Discussion started by: Donkey25
1 Replies

8. Programming

gcc compiler

Which gcc compiler release had the Arm 9 multicore support?Whether the compiler that used for the single Arm 9 core can be used for its multicore systems ? If gcc not support,please tell me which are the compilers that are available for Arm 9 multicore systems (including commerical).Whether... (0 Replies)
Discussion started by: sujith4u87
0 Replies

9. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies
ARCH(1) 						    BSD General Commands Manual 						   ARCH(1)

NAME
arch -- print architecture type or run selected architecture of a universal binary SYNOPSIS
arch arch [-32] [-64] [[-arch_name | -arch arch_name]...] [-c] [-d envname]... [-e envname=value]... [-h] prog [args ...] DESCRIPTION
The arch command with no arguments, displays the machine's architecture type. The other use of the arch command it to run a selected architecture of a universal binary. A universal binary contains code that can run on different architectures. By default, the operating system will select the architecture that most closely matches the processor type. This means that an intel architecture is selected on intel processors and a powerpc architecture is selected on powerpc processors. A 64-bit architecture is preferred over a 32-bit architecture on a 64-bit processor, while only 32-bit architectures can run on a 32-bit processor. When the most natural architecture is unavailable, the operating system will try to pick another architecture. On 64-bit processors, a 32-bit architecture is tried. If this is also unavailable, the operating system on an intel processor will try running a 32-bit powerpc architecture. Otherwise, no architecture is run, and an error results. The arch command can be used to alter the operating system's normal selection order. The most common use is to select the 32-bit architec- ture on a 64-bit processor, even if a 64-bit architecture is available. The arch_name argument must be one of the currently supported architectures: i386 32-bit intel x86_64 64-bit intel Either prefix the architecture with a hyphen, or (for compatibility with other commands), use -arch followed by the architecture. If more than one architecture is specified, the operating system will try each one in order, skipping an architecture that is not supported on the current processor, or is unavailable in the universal binary. The other options are: -32 Add the native 32-bit architecture to the list of architectures. -64 Add the native 64-bit architecture to the list of architectures. -c Clears the environment that will be passed to the command to be run. -d envname Deletes the named environment variable from the environment that will be passed to the command to be run. -e envname=value Assigns the given value to the named environment variable in the environment that will be passed to the command to be run. Any existing environment variable with the same name will be replaced. -h Prints a usage message and exits. The prog argument is the command to run, followed by any arguments to pass to the command. It can be a full or partial path, while a lone name will be looked up in the user's command search path. If no architectures are specified on the command line, the arch command takes the basename of the prog argument and searches for the first property list file with that basename and the .plist suffix, in the archSettings sub-directory in each of the standard domains, in the fol- lowing order: ~/Library/archSettings User settings /Library/archSettings Local settings /Network/Library/archSettings Network settings /System/Library/archSettings System settings This property list contains the architecture order preferences, as well as the full path to the real executable. For examples of the prop- erty list format, look at the files in /System/Library/archSettings. Example On an intel processor: % perl -MConfig -e 'printf "%s ", $Config{byteorder}' 1234 shows the intel little endian byte order. Making links to the arch command When a link is made to arch command with a different name, that name is used to find the corresponding property list file. Thus, other com- mands can be wrapped so that they have custom architecture selection order. Because of some internal logic in the code, hard links to the arch command may not work quite right. It is best to avoid using hard links, and only use symbolic links to the arch command. Environment The environment variable ARCHPREFERENCE can be used to provide architecture order preferences. It is checked before looking for the corre- sponding property list file. The value of the environment variable ARCHPREFERENCE is composed of one or more specifiers, separated by semicolons. A specifier is made up of one, two or three fields, separated by colons. Architectures specified in order, are separated by commas and make up the last (mandatory) field. The first field, if specified, is a name of a program, which selects this specifier if that name matches the program name in ques- tion. If the name field is empty or there is no name field, the specifier matches any program name. Thus, ordering of specifiers is impor- tant, and the one with no name should be last. When the arch command is called directly, the prog name provides the path information to the executable (possibly via the command search path). When a name is specified in a ARCHPREFERENCE specifier, the path information can alternately be specified as a second field following the name. When the arch command is called indirectly via a link, this path information must be specified. If not specified as a second field in a specifier, the executable path will be looked up in the corresponding property list file. Example ARCHPREFERENCE Values i386,x86_64 A specifier that matches any name. foo:i386,x86_64 A specifier that matches the program named foo (the full executable path is in the foo.plist file). foo:/op/bin/boo:i386,x86_64 A specifier with all fields specified. baz:i386;x86_64 A specifier for baz and a second specifier that would match any other name. BUGS
Running the arch command on an interpreter script may not work if the interpreter is a link to the arch command, especially if a 64-bit architecture is specified (since the arch command is 2-way universal, 32-bit only). SEE ALSO
machine(1) Mac OS X July 8, 2010 Mac OS X
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy