Open main menu

CDOT Wiki β

Changes

Distcc with MSVC:CL Options

13 bytes added, 19:56, 14 November 2006
Fixes to flow, format
= Tutorial =
This tutorial is a quick way to check if a cl option is supported in distcc. You will have to follow these steps: 1.# open up Open a cygwin so your in a bash shell, or the visual studio command Visual Studio Command prompt<br /># create 2. Create a header file called '''sample.h''':
<pre>
#include <stdio.h>
#define GUARD 0
 
</pre>
# create 3. Create a c C file called '''sample.c''':
<pre>
return GUARD;
}
</pre>
 
4. Preprocess the file:
$> cl /P sample.c
 
5. create a temporary folder:
$> mkdir temp
 
6. Move the sample.c to temp:
$> mv sample.i temp/
or
move sample.i temp/
 
7. Rename the file sample.c:
$> mv sample.i sample.c
or
$> rename sample.i sample.c
<8. Compile to '''object code''' and add a command line option listed below. For example: $> cl /Fo sample.obj /c sample.c ''/pre>nologo''
# preprocess the file9. If you get '''cl /P sample.c'''# create a temperary foler '''mkdir temp'''# move the file to temp '''mv sample.i temp/''' or '''move sample.i temp/'''# rename the file to sample.c '''mv sample.i sample.c''' or '''rename sample.i sample.c'''# compile to no object code and add a command line option listed below. For example '''cl /Fosample.obj /c sample.c , ''' an error''/nologo''# If you get no object code, get an error, or more 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 MSDN please link to where you got your information.
== Questionable Options ==