07-01-2019
Quote:
Originally Posted by
wisecracker
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...
Yeah, it was a long shot, as I have no idea about anything on Windows, including Cygwin.
I thought, maybe wrong, that as long as the architecture was the same (CPU family and number of bits, I assume 64 bit), that if you use gcc to compile a static binary on one, it should run on the other.
I am probably way off and totally wrong.
9 More Discussions You Might Find Interesting
1. Programming
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
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
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
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
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
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
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
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
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
LEARN ABOUT MOJAVE
extutils::mm_win32
ExtUtils::MM_Win32(3pm) Perl Programmers Reference Guide ExtUtils::MM_Win32(3pm)
NAME
ExtUtils::MM_Win32 - methods to override UN*X behaviour in ExtUtils::MakeMaker
SYNOPSIS
use ExtUtils::MM_Win32; # Done internally by ExtUtils::MakeMaker if needed
DESCRIPTION
See ExtUtils::MM_Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not
the semantics.
Overridden methods
dlsyms
replace_manpage_separator
Changes the path separator with .
maybe_command
Since Windows has nothing as simple as an executable bit, we check the file extension.
The PATHEXT env variable will be used to get a list of extensions that might indicate a command, otherwise .com, .exe, .bat and .cmd
will be used by default.
init_DIRFILESEP
Using for Windows.
init_tools
Override some of the slower, portable commands with Windows specific ones.
init_others
Override the default link and compile tools.
LDLOADLIBS's default is changed to $Config{libs}.
Adjustments are made for Borland's quirks needing -L to come first.
init_platform
Add MM_Win32_VERSION.
platform_constants
constants
Add MAXLINELENGTH for dmake before all the constants are output.
special_targets
Add .USESHELL target for dmake.
static_lib
Changes how to run the linker.
The rest is duplicate code from MM_Unix. Should move the linker code to its own method.
dynamic_lib
Complicated stuff for Win32 that I don't understand. :(
extra_clean_files
Clean out some extra dll.{base,exp} files which might be generated by gcc. Otherwise, take out all *.pdb files.
init_linker
perl_script
Checks for the perl program under several common perl extensions.
xs_o
This target is stubbed out. Not sure why.
pasthru
All we send is -nologo to nmake to prevent it from printing its damned banner.
arch_check (override)
Normalize all arguments for consistency of comparison.
oneliner
These are based on what command.com does on Win98. They may be wrong for other Windows shells, I don't know.
cd dmake can handle Unix style cd'ing but nmake (at least 1.5) cannot. It wants:
cd dir1dir2
command
another_command
cd ....
max_exec_len
nmake 1.50 limits command length to 2048 characters.
os_flavor
Windows is Win32.
cflags
Defines the PERLDLL symbol if we are configured for static building since all code destined for the perl5xx.dll must be compiled with
the PERLDLL symbol defined.
perl v5.18.2 2014-01-06 ExtUtils::MM_Win32(3pm)