Search 5,000,000+ questions and answers.

Frequently Asked Questions

Which C/C++ compiler should I use to build for /uns?

The /uns Maintainers' Frequently Unasked Questions List
of this fall, all Linux machines should use Fedora Core 2, where the system compiler is gcc 3.3.3. This is a fairly cutting-edge gcc and should handle most modern C/C++ code. On Solaris 2.5, the supported GNU C compiler is much older and buggier and should not be used; use the version in /uns if at all possible. Please note that various versions of gcc/g++ (particularly, though not limited to, 2.x and 3.x lines) may use mutually incompatible C++ object ABI's.
Related 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

How do I build netCDF for use with Fortran compiler xxx and C compiler yyy on platform zzz?

NetCDF FAQ
If you have an unusual combination of compilers or platform, you may have to set a few environment variables before invoking ./configure make test make install You should also check reports we maintain of successful builds in other environments. If you have success with a combination useful to others, please send it for addition to the list.
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

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

Which compiler must I use to build a plugin?

CPS
On the Macintosh, you can only use the g++ compiler. All examples use this compiler. If you type 'g++' inside a 'Terminal' and it gives some output, then it is already installed. If the command is not found, then you should download it together with ProjectBuilder or Xcode, which are nice graphical editors (IDE's). On Windows, the only supported compiler is Microsoft C++ (5 or higher), though a lot of people have worked with all kinds of other compilers succesfully as well.
Related Questions

How can I build a cross compiler?

MinGW - Frequently Asked Questions
Cross-compiling refers to building applications for one platform, with development occuring on another platfrom (i.e. compiling MS-Windows executables from within a Linux environment, or vice-versa). As GCC is found on literally dozens of platforms, it is theoretically possible to use the MinGW runtime in creating a cross-compilation development environment in many scenerios. There is a very old out-of-date mingw-cross-howto.txt written by Mumit Khan and stored on his site you can use.
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

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

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

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

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

I use Windows. Is there an /uns for me?

The /uns Users' Frequently Unasked Questions List
There is a Windows /uns repository which can be mounted as a share. It provides numerous useful tools, mostly command-line oriented, as well as application archives which can be installed on Windows users' local machines. To access the contents of the Windows repository, go to the share \\rfilesrv1\UNS. To add the /uns tools to your environment, copy (ctrl-drag) the shortcut "Start UNS environment" to your desktop and double-click to get a shell with the /uns environment.
Related Questions

How do I use package xyzzy in /uns?

The /uns Users' Frequently Unasked Questions List
Great! You'll need to join the /uns maintainers' group; send a join request to uns-request@cs.washington.edu. New maintainers should also read the maintainers' unFAQ to learn about the installation guidelines for /uns software.
Related Questions

Do I really need a C compiler to use RootCause?

RootCause/Aprobe FAQ
Unix: Only if you want to apply probes to native code. You can trace Java and native code, and dump Java parameters, without a C compiler. However, the only thing you can do with native code is trace it; you can't dump parameters or variables or generate probes (e.g., SNAPSHOT or COMMENT) because those are implemented by generating APC source code and then compiling it with Aprobe's apc compiler, which requires a C compiler backend.
Related Questions

Does anyone have a C compiler test suite I can use?

Tools and Resources
Plum Hall (formerly in Cardiff, NJ; now in Hawaii) sells one; other packages are Ronald Guilmette's RoadTest(tm) Compiler Test Suites (ftp to netcom.com, pub/rfg/roadtest/announce.txt for information) and Nullstone's Automated Compiler Performance Analysis Tool (see http://www.nullstone.com). The FSF's GNU C (gcc) distribution includes a c-torture-test which checks a number of common problems with compilers. Kahan's paranoia test, found in netlib/paranoia on netlib.att.
Related Questions

Miscellaneous
Plum Hall (formerly in Cardiff, NJ; now in Hawaii) sells one.  The FSF's GNU C (gcc) distribution includes a c-torture-test.tar.Z which checks a number of common problems with compilers.  Kahan's paranoia test, found in netlib/paranoia on netlib.att.com, strenuously tests a C implementation's floating point capabilities.
Related Questions

Can I use my Borland or Microsoft compiler with Paradigm C++ Professional?

Frequently Asked Questions
Currently there is no support in the IDE for older Borland or Microsoft compilers. Debugging is fully supported with the Paradigm C++ integrated debugger.
Related Questions

Q: Do I need a C++ compiler to use Excel Translator??

Excel Translator - FAQ, Expert System, DFA, Rapid Model Deve...
Yes, you need a C++ compiler installed on your computer in order to run Excel Translator?. Several compilers are available for free. In fact, during its installation Excel Translator? points you to the Microsoft's site to download a freely distributed C++ compiler, so there's no extra effort on your part to obtain it.
Related Questions

What compiler do I use to build 64-bit applications?

Driver Development FAQs
Sun WorkShop 5.0 was the first compiler from Sun to generate 64-bit code. The latest WorkShop compiler is now part of the Sun Studio line of developer tools. Using the Forte (WorkShop) C compiler, you specify the instruction set architecture (ISA) using -xarch. xarch=v9a adds the Visual Instruction Set (VIS) and extensions specific to UltraSPARC processors to the SPARC-V9 ISA, and enables the compiler to generate code for good performance on the V9 SPARC architecture.
Related Questions

What's an /uns?

The /uns Users' Frequently Unasked Questions List
uns is a collection of installed software which is maintained and supported by UW CSE grad students, not by the department's system administrators. The /uns software repository is shared by most departmental UNIX machines through NFS. It provides a more convenient, more persistent alternative to installing shared packages in individual users' home directories. Anyone can use the software in /uns, and many grad students with UNIX desktops do so on a regular basis.
Related Questions

Do I have to use the AspectJ compiler?

AspectJ Frequently Asked Questions
The AspectJ compiler or weaver is required at some point, but many people can use AspectJ without changing their build or deployment process significantly. For aspects that are not required to compile, you can use the AspectJ binary weaver, run at build-time or class-load-time. You can write aspects using the original code style (which must be compiled with the AspectJ compiler) or using the annotation style new in AspectJ 5 (which may be compiled with Javac or the AspectJ compiler).
Related Questions

How do I use scanf() and gets() functions with the PICC/PICC18 compiler ?

HI-TECH Software Frequently Asked Questions
How do I use scanf() and gets() functions with the PICC/PICC-18 compiler? A. The gets() function is not supplied by the compiler. Becuase gets() will get a string from a programer specified input, such as the serial port, it is easier for the programer to write this function then for it to be supplied in a library. There is a console get string function, cgets(), that will read string from an input using console formatting. The cgets() function is available in the cgets.
Related Questions

GraphApp Frequently Asked Questions
Any compiler which can produce Windows EXE files. Borland C version 3.0 or higher should work, and Microsoft C should also work. The library works best in the 'Large Memory Model' or the '32-bit Memory Model' What about TURBO C? Turbo C probably won't work because it is an older compiler which pre-dates Windows.
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

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

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact