Menu
  • HOME
  • TAGS

Compiler options for C# projects

c#,visual-studio-2013,xml-documentation,compiler-options

According to David Arno, this seems to be a problem with PostSharp. Uninstalling that extension fixed my problem.

How gcc multiple -o option works?

c,gcc,compiler-options

This doesn't seem to be documented: -o file Place output in file file. This applies to whatever sort of output is being produced, whether it be an executable file, an object file, an assembler file or preprocessed C code. If -o is not specified, the default is to put an...

Automated F# Signature File (.fsi) Generation

f#,signature,compiler-options,signature-files

You can tell VS to pass arbitrary flags to the compiler upon build by right clicking on your project in Solution Explorer and clicking "Properties." Under the "Build" tab fill in "Other flags". Specifying --sig:<Some path> (with support for msbuild-style $(Variable) settings) will auto-generate a single combined .fsi for your...

Can someone provide an example of how javac's -implicit option works?

java,compiler-options

You have it described quite well in the Java documentation. The answer to your first question is quite simple. Not using the -implicit option is almost like using -implicit:class (which is the default value of the option), but by explicitly using the option you suppress certain warning: The compiler might...

Adjust Variable Tracking Assignment Length

c++,gcc,compiler-options

This is just a note from the compiler that the debug info for the particular function will have lower quality, because your code of function is too large/complex so variable tracking reached limit of hash table slots. The max is likely lot of millions and it can be raised with...

Visual C++ Compiler Flag for Visual Studio 2013 for Targeting XP

c++,visual-studio-2013,compiler-options

The _USING_V110_SDK71_ macro has nothing to do with building your program to be compatible with XP, it is merely a side-effect. The essential option is a linker option, /SUBSYSTEM. Note how this option lets you specify the major and minor sub-system version number. Your program can only run on XP...

Can I pass VisualStudio Edition name through a compiler option?

c#,visual-studio,unit-testing,vs-unit-testing-framework,compiler-options

Open the csproj in a text editor and, after the last <PropertyGroup> add: <PropertyGroup Condition=" $(VisualStudioEdition.Contains('Ultimate')) "> <DefineConstants>$(DefineConstants);ULTIMATE</DefineConstants> </PropertyGroup> note that I've written the constant in all upper-case, so you'll have to change your code to: #if ULTIMATE If you want to future-proof yourself, as suggested by @Damian: <PropertyGroup Condition="...

Is there a Java compiler option to allow if(object)?

java,compiler-options

There aren't any compiler settings you could set to get this behavior. I don't think you could really do this elegantly with a code generator (something like Lombok), either since you can't really annotate statements. An alternative would be to use IntelliJ Live Templates for both if (args != null)...

Structure packing duplicity

c++,structure,memory-alignment,preprocessor-directive,compiler-options

For Visual Studio you'd want to surround your struct with: #pragma pack(push, 1) //Save packing value and set to 1 byte <struct definition> #pragma pack(pop) //Reset to whatever the packing was before. So, this: #include <iostream> #pragma pack(push, 1) struct packed { char FileSig[4]; //= "LASF"; // 4 unsigned __int16...

How to set compiler-specific flags with autotools

gcc,clang,autotools,compiler-options

AM_CXXFLAGS isn't something you should AC_SUBST. It is reserved for use by automake. If you look at the Makefile generated for a C++ target, you will find definitions for CXXCOMPILE and LTCXXCOMPILE, which always include the AM_CXXFLAGS variable. You want to add the (conditional) compiler flag to AM_CXXFLAGS or to...