Search 5,000,000+ questions and answers.

Frequently Asked Questions

What compiler arguments should I use to compile a gtkmm program?

gtkmm Frequently Asked Questions
You should use pkg-config's PKG_CHECK_MODULES macro in your configure.in file, as demonstrated in the gtkmm_hello package. Since this is the single most asked question about running GTK+ programs, we'll answer it here, even though it is in the GTK+ FAQ. Make sure the /usr/local/lib (the default install dir for gtkmm) is properly configured in your /etc/ldconf or that it is in your LD_LIBRARY_PATH environment variable. Alternatively, specify another prefix when running configure.
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

Which compiler should I use and where can I compile my codes?

You should use the Compaq compiler fort to compile both your fortran 77 and fortran 90 programs. C and C++ programs can be compiled with gcc or g++, respecively. To compile and link your MPI programs to the MPI libraries, use mpif77, mpif90, or mpicc. The mpi scripts use fort to compile and link your fortran MPI programs, and gcc or g++ to compile and link your MPI C or C++ programs. You can compile your codes on any machine, and you do not need to submit a job to compile your codes.
Related Questions

What compiler(s) must have been used to compile my program?

RootCause/Aprobe FAQ
Almost any program with symbols can be probed. The "full support" described below is based on the debug information needed for source lines and target expressions. Support for additional architectures, operating systems and compilers is always in progress, so please contact if you don't see what you need here. Aprobe supports the Microsoft Visual C++ development system versions 6 and 7 but does not support .NET (Dynamic Runtime Model) applications.
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

The program on page 269 doesn't compile when I use the ML.EXE compiler. What's wrong?

Frequently Asked Questions
The lines flagged by the assembler are the following, which use a combination of indirect operands and references to structure members: The MASM 5.11 assembler didn't mind this (and neither does Borland). But MASM 6.11 requires the use of the PTR operator to clarify the type of object pointed to by SI: If you're using ML.EXE, include the /Zm option when assembling. The complete command to assemble and link the program on page 269, for example, is: This message is generated when MASM.
Related Questions

What compiler can I use to compile device drivers?

Driver Development FAQs
When you build Solaris kernel modules use the same compiler that Sun used to build the OS. SunPro C is the only supported compiler. The following table gives the SunPro C compiler versions used to compile Solaris releases (in descending chronological order). The SunPro compiler does not work in compliant mode (-Xc), because the system header files are not fully compliant. Note: To ensure that compilers do not optimize away accesses to device registers, you must use volatile properly.
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

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

My program is larger after upgrading to a newer version of the compiler. Why?

HI-TECH Software Frequently Asked Questions
My program is larger after upgrading to a newer version of the compiler. Why? A: When a new version of the compiler is released, all reported bugs from the previous version are fixed. Sometimes when a bug is fixed the resulting code can be slightly larger. If you find your program is slightly larger after upgrading, then it could be that your code would have been effected by the bug when compiled with the previous version.
Related Questions

Why use gtkmm instead of GTK+?

gtkmm Frequently Asked Questions
gtkmm allows you to write code using normal C++ techniques such as encapsulation, derivation, and polymorphism. As a C++ programmer you probably already realise that this leads to clearer and better organised code. gtkmm is more type-safe, so the compiler can detect errors that would only be detected at run time when using C. This use of specific types also makes the API clearer because you can see what types should be used just by looking at a method's declaration.
Related Questions

Can I use C++ exceptions with gtkmm?

gtkmm Frequently Asked Questions
Yes, it is possible but it is not a very good idea. The official answer is that, since plain C doesn't know what a C++ exception is, you can use exceptions in your gtkmm code as long as there are no C functions in your call stack between the thrower and the catcher. This means that you have to catch your exception locally. You will be warned at runtime about uncaught exceptions, and you can specify a different handler for uncaught exceptions.
Related Questions

How can I use Glade and/or libglade with gtkmm?

gtkmm Frequently Asked Questions
Use libglademm, which is part of gnomemm and wraps libglade. It allows you to load widget information from the XML user interface description files that Glade generates at runtime. This method is strongly recommended. Experience has shown that it works well for large projects, and there is a lot of example code out there you can look at. For an introduction, see the corresponding chapter in the gtkmm tutorial.
Related Questions

How do I load pixmaps for use with gtkmm?

gtkmm Frequently Asked Questions
Use Gdk::Pixbuf and/or Gtk::Image. Both are easy to use and support a wide range of image file types via pixbuf loader plugins.
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

What compiler can I use?

OpenGL FAQ / 2 Getting Started
OpenGL programs are typically written in C and C++. You can also program OpenGL from Delphi (a Pascal-like language), Basic, Fortran, Ada, and others. Here are three sites with info on using OpenGL through Visual Basic: http://www.softoholic.bc.ca/opengl/down.htm, http://www.weihenstephan.de/~syring/ActiveX/, http://www.ieighty.net/~davepamn/colorcube.html.
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

Are there instructions available how to compile Xvid with my compiler?

Xvid.org: FAQ
Have a look at the install readme file that comes along with Xvid. It describes how to use the Xvid build scripts to compile Xvid with gcc under Linux or MinGW/CygWin. Xvid can also be compiled with Microsoft Visual C++ compiler using the provided project files included in the build directory. For other compilers you're pretty much on your own. It should be not very difficult however to make the code compile with a different compiler.
Related Questions

What compiler is required to compile Opennap NG?

Opennap NG 0.49 @ SF - FAQ
Opennap NG's current codebase is written in ISO C99. Unfortunately, most commercial C compilers do not (or not fully) support ISO C99 but rather define their own, proprietary and non-portable language extensions. GCC (GNU Compiler Collection) fully supports ISO C99. As it also makes some use of features unique to GCC, such as platform-dependent inline assembly, Opennap NG requires GCC as compiler.
Related Questions

How do I compile a program?

Grex FAQ
To compile a C program named foo.c, type gcc foo.c -o foo This compiles foo.c and creates an executable program named foo. To run it, type ./foo Likewise, to compile a C++ program named foo.cpp, type g++ foo.cpp -o foo Please check with the Grex staff before compiling programs you bring in from the net.
Related Questions

Can I use LabWindows/CVI or any other external compiler to program the RT Series hardware?

Frequently Asked Questions - Support - National Instruments
Not at this time. However, as of LabWindows/CVI 6.0, you can communicate with your 7030/60XX RT hardware using shared memory. To do this, use the LabVIEW RT communications functions under toolslib\cvirtsup. You can also build dll's in LabWindows/CVI that can be called by LabVIEW RT. To do this, set your dll target settings to build a dll for LabVIEW Real-Time only.
Related Questions

How to use/compile this module ?

NW802 kernel module - Frequently Asked Questions
First, download the sources. Then type make. It should produce nw802.o and usbvideo.o . Then modprobe videodev, insmod usbvideo.o & insmod nw802.o . Now the module is loaded. usbvideo.c & usbvideo.h are included in the CVS tree & in the packages but these files are actually part of the kernel tree. I included them because they may have not been built with your kernel. If you wish, you can copy these from /usr/src/linux/drivers/usb/ (eg. to get newer versions.
Related Questions

What compiler does Cygwin/X use, and which compilers are supported?

Cygwin/X Frequently Asked Questions
Cygwin/X uses the gcc compiler from the Free Software Foundation. Cygwin/X source code is mostly ANSI C compliant, but we cannot guarantee that Cygwin/X will compile with any other compiler, nor can we afford the time to support compilers other than gcc.
Related Questions

What can I expect when I try to compile my program?

Inform 6 FAQ: Preparing to program
The short answer is: lots of errors. If you think of the compiler as a tool for finding your programming mistakes, with the generation of runnable Z-code as a fortuitous by-product, you'll be close to the mark. Just occasionally a compilation is successful, but that's the exception rather than the rule; it's much more likely that it will fail, probably producing a lot of obscure messages. So, you should be neither surprised nor worried by a mass of error reports.
Related Questions

Why does compiler fail to compile sha512.c?

OpenSSL: Support, Frequently Asked Questions
OpenSSL SHA-512 implementation depends on compiler support for 64-bit integer type. Few elder compilers [ULTRIX cc, SCO compiler to mention a couple] lack support for this and therefore are incapable of compiling the module in question. The recommendation is to disable SHA-512 by adding no-sha512 to ./config [or ./Configure] command line. Another possible alternative might be to switch to GCC.
Related Questions

The compiler refuses to compile regexp.c, what is the problem?

Procmail Frequently Asked Questions
Procmail as an integrated local mail delivery agent? (generic, sendmail, ZMailer, smail, SysV mailsurr)
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact