09-16-2001
The short answer is... YES.
Virtually all C++ compilers (I have encountered)
know how to handle ".c" files with no problem.
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
ic(1int) ic(1int)
Name
ic - compiler for language support database
Syntax
ic [ -Dname=def ] [ -Uname ] [ -Idir ] [ -v ] [ -o output ] [ source ]
Description
The command generates a binary international database from a database language source file. The command either accepts its input from the
file source or from the standard input, if you do not specify source .
The name of the output file is the name of the codeset in the source file or the name you specify using the option.
For information on creating a database language source file, see the Guide to Developing International Software.
Options
-D Defines name to the C preprocessor. This option has the same effect as including the directive at the head of your source file. The
default name definition is 1.
-U Removes any initial preprocessor definition of name .
-I Causes the compiler to search the named directory for files you name in an directive.
-o Specifies the name you want to use for the output file. By default, the compiler uses the name of the codeset in the source file to
name the output file.
-v Requests statistics on the number of simple and double letters in the source file, the number of tables in the source file, and the
size of the output binary file.
Restrictions
The length of the table name modifier is limited to 44 characters.
Examples
The following command causes the compiler to compile the source file:
% ic -v GER_CH.8859.in
INTLINFO database GER_CH.8859:
257 code table entries (256 simple/1 multi-byte).
1 property table(s).
1 collation table(s).
1 string table(s).
3 conversion tables: toascii, tolower, toupper.
5051 bytes total length.
The compiler searches for the file in the current working directory. The compiler writes compilation statistics to as requested by the
option. The compiler creates a binary file, named in the current working directory.
Return Values
The compiler returns zero exit status for successful compilation; it returns nonzero status if it encounters errors that inhibit generation
of a binary file.
Diagnostics
The compiler issues four types of messages. The following list describes each of the four types:
warning The compiler has detected syntax that may be in error, but does not adversely effect the binary file.
error nn The compiler has detected an error severe enough to inhibit the generation of a correct binary file.
fatal error The compiler has detected an error that makes it impossible to proceed with the compilation. This error most often occurs
during compilation of the code table.
fatal bug This occurs when there are internal errors in the compiler. For example, this is generally produced when an incompatible
source file is given as an input to
Files
Temporary files
C preprocessor
See Also
intro(3int), setlocale(3), environ(5int), lang(5int), nl_langinfo(5int)
Guide to Developing International Software
ic(1int)