background preloader

C Development

Facebook Twitter

Squid in 5 minutes. Why Squid? Why only five minutes? There are many great tools that Squid has to offer, but when I need to redirect http traffic to a caching server for performance increases or security, squid’s my pick. Squid has built in proxy and caching tools that are simple, yet effective. I recently used Squid for a secure subnet that did not allow outgoing port 80 http access to external IP addresses. Many organizations will block external port 80 access at the router level. The situations described above are when the five minute Squid configuration comes in very handy. Install On a Red Hat® Enterprise Linux® or Fedora™ Core operating system, it is easy to check if Squid is installed using the rpm system.

Rpm -q squid If Squid is already installed, you will get a response similar to: squid-2.5.STABLE6-3.4E.12 If Squid isn’t installed, then you can use Yum to install it. Just type at a command line: yum install squid If you happen to have downloaded the rpm you can also type something like: Configure. Download Visual Studio .NET 2003 SP1 from Official Microsoft Download Center. Games - Visual C++ .NET Standard Edition - Free Optimizing Compiler. Tuesday, June 29, 2004 By: Jason Doucette February 24, 2007 Update: Visual Studio .NET 2003 Service Pack 1 has been released. Since this fixes Visual C++ 2003 Standard compiler bugs, it begs the question: Should I: A. Upgrade Visual C++ 2003 Standard to SP1, and use the newly fixed non-optimizing compiler? B. May 18, 2006 Update: The Visual C++ Toolkit 2003 has been replaced with Visual C++ 2005 Express Edition, which is also free. Anyone who has purchased Microsoft Visual C++ .NET Standard Edition (version 2002 or 2003, a.k.a. version 7.0 or 7.1, and VC7), which is much cheaper (estimated retail price: $109 USD) than the entire Microsoft Visual Studio .NET Professional Edition package (estimated retail price: $799 USD), has been annoyed that it does not come with the optimizing compiler.

How do I instruct Visual C++ .NET Standard to use the Optimizing Compiler? Download and install the Visual C++ Toolkit 2003. You should see five files that start with 'c'; they are the compiler files: The GNU C Programming Tutorial. Node:Writing a makefile, Next:Building a library, Previous:Compiling multiple files, Up:Putting a program together Writing a makefile The GNU make program automatically determines which pieces of a large program need to be recompiled, and issues the commands to compile them. You need a file called a makefile to tell make what to do. In this section, we will discuss a simple makefile that describes how to compile and link a text editor which consists of eight C source files and three header files.

Although the examples in this section show C programs, you can use make with any programming language whose compiler can be run with a shell command. Your makefile describes the relationships among files in your program and provides commands for updating each file. Once a suitable makefile exists, each time you change some source files, this simple shell command: make suffices to perform all necessary recompilations.

When make recompiles the editor, each changed C source file must be recompiled. A Simple Makefile Tutorial. Makefiles are a simple way to organize code compilation. This tutorial does not even scratch the surface of what is possible using make, but is intended as a starters guide so that you can quickly and easily create your own makefiles for small to medium-sized projects. A Simple Example Let's start off with the following three files, hellomake.c, hellofunc.c, and hellomake.h, which would represent a typical main program, some functional code in a separate file, and an include file, respectively.

Normally, you would compile this collection of code by executing the following command: gcc -o hellomake hellomake.c hellofunc.c -I. This compiles the two .c files and names the executable hellomake. Unfortunately, this approach to compilation has two downfalls. The simplest makefile you could create would look something like: Makefile 1 hellomake: hellomake.c hellofunc.c gcc -o hellomake hellomake.c hellofunc.c -I. In order to be a bit more efficient, let's try the following: Makefile 2 Makefile 3.