08-09-2001
C compiling under C++ compiler
I want to compile a c-language source file ( *.c ) under C++ compiler in the UNIX workstation. Is that compatable?
9 More Discussions You Might Find Interesting
1. Programming
I recently loaded SuSE on my intel comp.
I am presently taking a walk down memory lane from my days at UofT.
I was fiddling round with cc and the gcc compilers.
I wrote a basic basic basic program .
I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
2. Programming
I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies
3. UNIX for Advanced & Expert Users
I have a problem.
How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result.
I am pretty sure that I wasn't hacked!
... (5 Replies)
Discussion started by: aViking
5 Replies
4. 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
5. Programming
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's...
Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies
6. 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
7. UNIX for Dummies Questions & Answers
hey all,
could someone explain or at least give me some pointers as to how to compile a compiler. I'm thinking about experimenting with operating systems and the Mach kernel. Now if I get an OS built on the Mach kernel to work how can I compile a compiler for it, because to me this is an... (10 Replies)
Discussion started by: neur0n
10 Replies
8. UNIX for Dummies Questions & Answers
Hey,
I'm trying to install DigSig ( disec.sourceforge.net ) on my CentOS5 distro. I was following all the steps in the readme but it didn't work. So here's the output:
# ./digsig.init compile
make: Entering directory `/usr/src/kernels/2.6.18-194.32.1.el5-i686'
CC ... (2 Replies)
Discussion started by: disaster
2 Replies
9. UNIX for Advanced & Expert Users
Heyas
I'm currently trying to make a fresh build from scratch/source of FFMPEG.
This said, it brings quite a tail with it, so the use of a script was very obvious.
Anyway, i'm currently stuck at named package.
Lets ignore the tarball/download line, as the error is after.
Commands... (0 Replies)
Discussion started by: sea
0 Replies
LEARN ABOUT DEBIAN
snacc-config
SNACC-CONFIG(1) [FIXME: manual] SNACC-CONFIG(1)
NAME
snacc-config - script to get information about the installed version of snacc
SYNOPSIS
snacc-config [--version] [--prefix=DIR] [--exec-prefix=DIR] [--uninstalled=DIR] [--libtool] [--cflags] [--libs] [--compiler] [--asn1specs]
[--language=LANG (C or C++)] [BUFFERTYPE (one of ebuf, mbuf, sbuf, or tbl)]
DESCRIPTION
snacc-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link
programs that use snacc.
OPTIONS
--version
Print the currently installed version of snacc.
--prefix=PREFIX
If specified, use PREFIX instead of the installation prefix that snacc was built with when computing the output for the --cflags and
--libs options. This option is normally not needed in Debian GNU/Linux.
--exec-prefix=PREFIX
If specified, use PREFIX instead of the installation exec prefix that snacc was built with when computing the output for the --cflags
and --libs options. This option is normally not needed in Debian GNU/Linux.
--libtool
If you understand this option, please file a bug against snacc.
--cflags
Print the compiler flags that are necessary to compile a snacc based program.
--libs
Print the linker flags that are necessary to link a snacc based program.
--compiler
Prints the filename of snacc. On Debian GNU/Linux, it's /usr/bin/snacc.
--asn1specs
Print the location of the snacc-specific ASN.1 files. On Debian GNU/Linux, it's /usr/include/snacc/asn1/.
--language=LANG (C or C++)
This option determines, wether --cflags and --libs print the flags for C or C++. On Debian GNU/Linux this is e.g.
/usr/include/snacc/c/ or /usr/include/snacc/c++/.
BUFFERTYPE
This option determines the output of --cflags and --libs. BUFFERTYPE must be one of ebuf, mbuf, sbuf, or tbl.
SEE ALSO
snacc (1), mkchdr(1), ptbl(1), pval(1), berdecode(1).
Please install the snacc-doc package for more information on snacc.
AUTHOR
This manual page was written by W. Martin Borgert (debacle@debian.org) for the Debian GNU/Linux system. Parts of it are taken from the
glib-config(1) manual page - I hope that nothing is inaccurate for snacc-config. Permission is granted to copy, distribute and/or modify
this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation.
AUTHOR
W. Martin Borgert
Author.
COPYRIGHT
Copyright (C) 2001 W. Martin Borgert
[FIXME: source] 2001-02-17 SNACC-CONFIG(1)