Changes

Jump to: navigation, search

Distcc with MSVC:CL Options

174 bytes added, 18:47, 13 November 2006
Tutorial
= Tutorial =
This tutorial is a quick way to check if a cl option is supported in distcc. You will have to follow these steps.
# open up cygwin so your in a bash shell, or the visual studio command prompt# create a simple header file. Try to #include some things like stdiocalled sample.h and other .h files. You can use this code or write your own: 
<pre>
#include <stdio.h>
#define GUARD 0
 
</pre>
 
# create a c file called sample.c
 
<pre>
#include "sample.h"
#include <string.h>
int main(void) { printf("Hello World") return GUARD;
}
 
</pre>
 # preprocess the file. Use the '''cl /P for this, sample.c'''# create a temperary foler '''mkdir temp'''# move the file will be called <filename>to temp '''mv sample.itemp/''' or '''move sample.i temp/'''# move rename the file to some other location on your filesystem, you can create a temporary folder for thissample.c '''mv sample. (ei sample.gc''' or '''rename sample. if your source is in ~/src, move it to ~/tmpdir and try to compile therei sample.)c'''# compile to object codeand add a command line option listed below. Pass the For example '''cl /Fo<filename>Fosample.obj /c to compile only to object codesample. c ''' ''/nologo''# If you get no object code , get an error, or you get a warningmore than ''sample.obj'' being created, please give either document on this page or if you feel really unsure, post in the discussion. When documenting please specify if your documentation comes from reading or doing. If reading is not from msdn please link to where you got your information.
== Questionable Options ==
1
edit

Navigation menu