conditional-compilation Questions

1

Solved

I want my XCode Objective-C project to be able to detect which configuration it is being built with. How can I achieve this?

2

Solved

I am trying to include 2 platform-specific stdafx.h files in my .cpp file, but the compiler is unhappy when I try to #ifdef it. #ifdef _WIN32 #include "stdafx.h" #elif _MAC #include "MAC/stdafx.h...
Mcarthur asked 16/9, 2009 at 22:18

1

Solved

Sometimes I see @cc_on in JavaScript. What does it mean?
Joris asked 27/8, 2009 at 14:23

1

Solved

I have a solution explorer contains 2 projects. For one project I have enabled /clr with /mdd. For parent project I have /mtd and no clr support. When I compile this I get two linker errors includi...
Neoprene asked 3/6, 2009 at 12:35

1

Solved

can anybody please explain for me how and why /clr is incompatible with /mtd ? What is the alternative for this? What happens internally if I use /md or /mdd ? As far as I know we don't combinedly...

3

Solved

Possible Duplicate: Debug vs. release in .NET Debug/Release difference What is the difference between Release and Debug modes in Visual Studio while building a project?

2

Currently our .net code is not processor specific, but it depends on libraries (Oracle/ODP.Net) which are. We've found a solution where we edit the csproj file directly, and put the references in t...
Lynettelynn asked 12/5, 2009 at 22:6

2

Solved

What is an alternative to autotools in Haskell world? I want to be able to choose between different configurations of the same source code. For example, there are at least two implementations of M...

11

Solved

Is it possible to do something like this #ifdef SOMETHING #define foo // #else #define foo MyFunction #endif The idea is that if SOMETHING is defined, then calls to foo(...) become comments (or ...
Mont asked 13/2, 2009 at 18:1

5

Solved

Are there any preprocessor symbols which allow something like #if CLR_AT_LEAST_3.5 // use ReaderWriterLockSlim #else // use ReaderWriterLock #endif or some other way to do this?
Hughmanick asked 3/1, 2009 at 11:3

6

Solved

In a recent question on stubbing, many answers suggested C# interfaces or delegates for implementing stubs, but one answer suggested using conditional compilation, retaining static binding in the p...
Azoic asked 18/9, 2008 at 21:21

© 2022 - 2024 — McMap. All rights reserved.