Changes

Jump to: navigation, search

Distcc with MSVC:CL Options

186 bytes added, 23:46, 19 November 2006
Tutorial: Stupid CL being stupid and not unix
= 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 a cygwin bash shell, or the Visual Studio Command prompt<br /># create 2. Create a simple header file. Try to #include some things like stdio.h and other called '''sample.h files. You can use this code or write your own'''
<pre>
#include <stdio.h>
#define GUARD 0
</pre>
 
3. Create a C file called '''sample.c''':
 
<pre>
#include "sample.h"
#include <string.h>
int main(void) { printf("Hello World") return GUARD;
}
</pre>
# preprocess 4. Preprocess the file. Use the : $> cl /P for this, the file will be called <filename>sample.ic # move the file to some other location on your filesystem, you can 5. create a temporary folder for this: $> mkdir temp 6. (eMove the sample.gc to temp: $> mv sample. if your source is in ~i temp/src, or move it to ~sample.i temp/tmpdir and try to compile there 7. Rename the file sample.c: $> mv sample.i sample.c or $> rename sample.i sample.)c # compile 8. Compile to '''object code''' and 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'' 9. If you get '''no object code ''', '''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 MSDN please link to where you got your information.
== Questionable Options ==
1
edit

Navigation menu