2 # Cedric.Bilat@he-arc.ch
\r
7 #######################
\r
8 # Compilateur : Visual#
\r
9 #######################
\r
15 # CL Compileur option:
\r
19 # /I XXX Header search path is XXX
\r
24 # /w Suppres warning messages
\r
25 # /Wall Enables all warning
\r
30 # /Od Sans optimisation
\r
31 # /arch:SSE Enables the use of SSE instructions.
\r
32 # /arch:SSE2 Enables the use of SSE2 instructions.
\r
33 # /arch:AVX Advanced Vector Extensions instructions
\r
34 # /arch:AVX2 Advanced Vector Extensions instructions
\r
38 # /EHsc Enable C++ exception handling
\r
39 # /nologo Suppresses startup banner
\r
40 # /fp:precise Floating point precise
\r
41 # /Gd Calling convention __cdecl
\r
47 # -DXXX Passe au code la variable XXX (same as #define XXX in code)
\r
51 # /openmp Enable use of OpenMP
\r
53 # opm.h (already include in visual distribution)
\r
55 # libiomp5md.lib (already include in visual distribution,but must be explicitly link!)
\r
57 # libiomp5md.dll (already include in visual distribution)
\r
59 # Use dependencyWalker.exe to see which .dll is required)
\r
61 # Link (to pass to cl)
\r
63 # /Link Prefixe of all option below: Example : cl TTT /link /LIBPATH:XXX /LD
\r
65 # CL Linker option (to write after /link)
\r
69 # /LIBPATH:XXX Library .a search path is XXX
\r
73 # /DLL Target .dll (don't forget to set extension .dll to TARGET_NAME) (build the .dll and the associate.lib if __declspec(dllexport) is use at less once
\r
74 # /MACHINE:X64 Target 64 bits
\r
79 # /INCREMENTAL:NO Incremental linking
\r
80 # /OPT:REF Eliminate Unreferenced Data
\r
81 # /DYNAMICBASE:NO Disable Image Randomization
\r
83 # About CRT (C Rutime library):
\r
85 # If your application use specificity of windows, you need to link some basic library as
\r
87 # kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
\r
88 # shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
\r
90 # or maybe all library available with visual and refered by the va LIBS (initialise by the script vcvarsamd64.bat). In this last case, you must choice
\r
91 # what CRT you want to use. There 5 choices. Every one is represented by one of this lib:
\r
93 # libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib
\r
95 # The general choice are:
\r
97 # (C1) use msvcrt.lib and compile with flag /MD
\r
98 # (C2) use libcmt.lib and compile with flag /MT
\r
100 # Put only on of this lib in the /LIBPATH
\r
104 # http://msdn.microsoft.com/en-us/library/7t5yh4fd.aspx
\r
106 #######################
\r
108 #######################