Search 5,000,000+ questions and answers.

Frequently Asked Questions

Is C++ a superset of C? Can I use a C++ compiler to compile C code?

Infrequently Asked Questions in comp.lang.c
C++ is a superset of something, we're not sure what. You can use a C++ compiler to compile C code, but the results may surprise you.
Related Questions

Where is the C compiler or where can I get one?

Solaris 2 FAQ
Where have you been? :-) Sun has dropped their old K&R C compiler, supposedly to create a market for multiple compiler suppliers to provide better performance and features. Here are some of the contenders: SunPro, SMCC, and various distributors sell a new ANSI-standard C compiler on the unbundled (extra cost) SPARCcompiler/SPARCworks CD-ROM. There are some other nice tools there too, like a "make tool" and a visual diff (interactive diff).
Related Questions

People keep telling me that getch() is not standard, but my C compiler has it. Are they wrong?

Infrequently Asked Questions in comp.lang.c
They've been programming more than ten years. You haven't. Draw your own conclusions. That's right! They hadn't noticed it. No doubt their compilers have it too, and its behavior is identical everywhere else in the world, also. That would explain everything.
Related Questions

but the compiler gave me error messages. Can't a structure in C contain a pointer to itself?

Infrequently Asked Questions in comp.lang.c
Not exactly; it can contain a pointer to another structure of the same type. Try: typedef struct { char *item; double *next; } NODEFAKE; typedef struct { char *item; NODEFAKE *next; } NODEPTR;
Related Questions

I'm using C++ but would prefer to use a different compiler than the one on CEC. Is this possible?

CS 241 Frequently Asked Questions (FAQs)
Sure. However, you will be responsible for making any needed modifications to the provided code. The provided IntervalTimer will not work on other platforms since it makes calls into the Unix operating system. You can replace this by whatever system utility you have to get the time. Then by getting the time before and after the algorithm runs you can take their difference to determine the elapsed time. Just be sure that your procedure is the only process running.
Related Questions

Can you support my C compiler XXX?

FFmpeg FAQ
It depends. If your compiler is C99-compliant, then patches to support it are likely to be welcome if they do not pollute the source code with #ifdefs related to the compiler. Visual C++ is not compliant to the C standard and does not support the inline assembly used in FFmpeg. If you wish - for whatever weird reason - to use Visual C++ for your project then you can link the Visual C++ code with libav* as long as you compile the latter with a working C compiler.
Related Questions

What C++ compiler is required?

OpenEye Scientific Software | FAQ
OEChem distributions are generally labelled clearly to indicate the corresponding compiler and version. Additional compiler support information can be found at the OpenEye Platform Support document, in the accompanying technical notes.
Related Questions

Is Micro-C a full ANSI compiler?

FAQs
MICRO-C is a "near ANSI" subset compiler. It does however, support more of the 'C' language than most other subset compilers, including: Micro-C has a long history, and began life as a K&R only compiler. It has evolved toward ANSI quite a bit, and continues to do so, however it is NOT a fully ANSI compliant compiler, and most likely never will be..
Related Questions

Where can I find a C-to-Forth compiler?

comp.lang.forth Frequently Asked Questions (1/6): General/Mi...
We, ( CodeGen, Inc.) sell a C-to-Fcode compiler. Well, it actually generates IEEE-1275 Forth that then must be run through a tokenizer. Really, it generates pretty ugly Forth code. It's easy to generate lousy Forth, but it's very difficult to generate nice clean optimized Forth. C and stack-based languages don't mix too well. I end up faking a C variable stack-frame using a Forth $frame variable for local vars. MPE has produced a C to stack-machine compiler.
Related Questions

How do I get the Cygwin C++ compiler for Windows?

FAQ
The easiest way is to buy the distribution CD from the IEEE Student Branch ($5 for IEEE members, $10 for non). It contains the Cygwin (GNU) C++ compiler, the Insight debugger, the "Teaching Machine" and instructional videos. If you have a fast internet connection and don't want the videos etc., you can go to Cygwin's site and click on the "Install Now!" icon. Be sure to install at least the following packages:
Related Questions

I already have C++ compiler x, can I use it?

FAQ
Yes, but you should compile and run your test cases using the Cygwin/GNU compiler (g++) in the lab before you submit your assignments. If it works there, then it's ok. (Of course we may find test cases for which your program doesn't work on any compiler.) where files is a list of one or more files that the compiler is to compile, and options is one or more of the following. (There are others, these are just the most relevant ones.) Give all warnings.
Related Questions

Can I compile Octave with another C++ compiler?

Frequently asked questions about Octave (with answers)
I'm looking for new questions (with answers), better answers, or both. Please send suggestions to bug-octave@bevo.che.wisc.edu. If you have general questions about Octave, or need help for something that is not covered by the Octave manual or the FAQ, please use the help-octave@bevo.che.wisc.edu mailing list. This FAQ is intended to supplement, not replace, the Octave manual.
Related Questions

Where can I get a free C++ compiler?

FAQ - CPP
This is most likely due to attempting to build a console program as a GUI application. If you intended to create a console app, make a new project with the console wizard.
Related Questions

What optimizations does the C# compiler perform when you use the /optimize+ compiler option?

C
The following is a response from a developer on the C# compiler team: We get rid of unused locals (i.e., locals that are never read, even if assigned). We get rid of unreachable code. We get rid of try-catch with an empty try. We get rid of try-finally with an empty try. We get rid of try-finally with an empty finally.
Related Questions

What C compiler do you recommend?

Ken Silverman's Build Engine Page
I recommend Microsoft Visual C because it's the industry standard... and also what I use for current projects. I used to use Watcom C when it was the only 32-bit compiler. I had lots of trouble finding example code for it because it was not so popular. Thankfully, everything is 32-bit these days. You'll save yourself a lot of trouble in the future by starting with a popular compiler.
Related Questions

Where can I get the C code of a Modula-2 compiler?

Modula-2 FAQ
Most Modula-2 compilers are written in Modula-2. It seems rather strange to me that one would want to trust the compilation of a good language to a tool written in a poor one.
Related Questions

Can I use your Basic compiler program to convert Basic programs into C?

FAQ
The compiler only works for a small subset of Basic and produces quite inefficient code. I do not recommend it.
Related Questions

Where can I get a C compiler for Solaris?

SunManagers Frequently Asked Questions
Sun's "Studio" compiler suite can be obtained at http://www.sun.com/software/products/studio. Various third-party commercial SPARC compilers are also available, including: The open-source GCC compiler and related tools are available on the Solaris Software Companion CD, which is part of the media kit for the Solaris distribution. The contents of this CD are also available for free download at http://www.sun.
Related Questions

Is there a C compiler for the HP48?

HP48 Frequently Asked Questions List (FAQ): Questions about ...
Yes. Alex Ramos has written a GNU C back end for the Saturn processor. Binaries are available for both Linux and Windows 95/NT, and source is available for compilation on other platforms.
Related Questions

What's a free or cheap C compiler I can use?

Tools and Resources
A popular and high-quality free C compiler is the FSF's GNU C compiler, or gcc. An MS-DOS port, djgpp, is also available. As far as I know, there are versions of gcc for Macs and Windows machines, too. A very inexpensive MS-DOS compiler is Power C from Mix Software, 1132 Commerce Drive, Richardson, TX 75801, USA, 214-783-6001. A shareware MS-DOS C compiler is available from ftp.hitech.com.au/hitech/pacific. Registration is optional for non-commercial use. Archives associated with the comp.
Related Questions

Why can't I get the C compiler to compile my program?

Grex FAQ
Probably you are using the wrong C compiler. Grex has two compilers installed. cc is only used for building certain system executables. It is not ANSI standard, and it lacks certain standard include files. You need to use gcc instead. This is a fairly recent version of the Gnu C compiler. It is ANSI standard and very complete.
Related Questions

Do I need a C++ compiler to use TurboExcel?

Savvysoft - A New Spin on Derivatives Software
Yes. While TurboExcel will write the C++ code, you'll still need a compiler. However, several are available for free. In fact, TurboExcel ships with one, and even Microsoft offers one.
Related Questions

Q. Where can I get a free C++ compiler?

C++ FAQs - General
Q. Why do I get an "unresolved external symbol _WinMain@16" (or similar) error at link-time? (MSVC) This is most likely due to attempting to build a console program as a GUI application. If you intended to create a console app, make a new project with the console wizard.
Related Questions

Can I access a C++ compiler from home without installing it on my computer?

FAQ
Yes, but it's not the same one as in the lab, so it may behave slightly differently. You can test your programs via modem by logging in to any of the Unix systems (tera, exa, pico etc.). The compiler commands are the same as I've demonstrated. You'll need to transfer your files to your directory on the server (e.g., using ftp), which is the same as the M: drive.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact