Linked Questions

0 votes
1 answer
124 views

I need to use strncpy_s in my code. The code needs to be compiled using msvc71 as well as msvc90 compilers. It turns out that strncpy_s is not supported in msvc71. I have implemented my own version of ...
Abhash Kumar Singh's user avatar
112 votes
9 answers
114k views

Is there a way to detect at compile-time if the compiler supports certain features of C++11? For example, something like this: #ifndef VARIADIC_TEMPLATES_SUPPORTED #error "Your compiler doesn't ...
Maxpm's user avatar
  • 26.1k
38 votes
2 answers
18k views

It's well known that Microsoft's Visual Studio compiler does not support C99, and it looks like they have no plans to support it. However, the compiler does include some cherry picked features such as ...
Timothy Jones's user avatar
30 votes
2 answers
47k views

I've found these lines in the libmagic code. What do they mean? #ifdef __GNUC__ __attribute__((unused)) #endif What does __GNUC__ mean? It seems to check whether GCC is installed. What is ...
alvas's user avatar
  • 123k
10 votes
4 answers
8k views

I would like to use the TR1 libraries that ship with modern versions of GCC and MSVC, but there are subtle differences: in GCC, I have to say #include <tr1/memory> std::tr1::shared_ptr<int&...
Kerrek SB's user avatar
  • 480k
2 votes
1 answer
8k views

I want to know if my compiler supports C++11 or no, and when use the const __cplusplus to know the C++ version, I found that prints 199711. Is this version number means that compiler supports C++11? ...
Lion King's user avatar
  • 34.1k
1 vote
2 answers
13k views

I inherited an old program from a colleague that is no longer with the company. It's an CPLEX optimization we use. It was built in house in C++ using Visual Studio 2005 and CPLEX121. The server where ...
jstyles3's user avatar
9 votes
1 answer
5k views

Could someone please explain how to resolve the ambigious overload warning for make_unique, where the error comes from and what it does exactly mean (I do understand what an ambigious overload is but ...
Kevin Streicher's user avatar
6 votes
2 answers
3k views

I am converting a VC++6.0 project to Visual Studio 2008 (enroute to 2014). I am encountering the above error. Here is my code snippet: BEGIN_MESSAGE_MAP(CImportProjectDlg, CDialog) //{{AFX_MSG_MAP(...
Don Golden's user avatar
2 votes
2 answers
8k views

I have Microsoft Visual Studio 2022 installed and when I open from IDE the menu item Help->About Microsoft Visual Studio it shows Version 17.7.7 (explicitly saying "Current" for my ...
Damir Tenishev's user avatar
9 votes
2 answers
6k views

This is both a question and a reference and I am hoping that people can build upon this so that it can be reused by people with similar questions. How can we reliably detect a particular version of a ...
Cthutu's user avatar
  • 8,917
3 votes
3 answers
301 views

The problem is that on one platform (windows, mvsc2015) uint64_t is defined as unsigned long long and on another (ubuntu, clang) it's unsigned long and there is the code which looks like sprintf(...
Dan M.'s user avatar
  • 4,074
3 votes
2 answers
4k views

I am receiving an error message for not naming a type, as follows: error: ‘hash_map’ does not name a type typedef hash_map<const char*,LexUnitX*,MLexUnitFunctions> MLexUnit; The code in ...
user02103012's user avatar
1 vote
2 answers
3k views

Related Question 1 Related Question 2 [Error Log] C:\Users\Hima\Documents\Installers\python\packages>python -m pip install lxml-3.4.4-cp34-none-win_amd64.whl lxml-3.4.4-cp34-none-win_amd64.whl is ...
hkalra's user avatar
  • 55
3 votes
2 answers
2k views

I want to compile different thing based on the visual studio version i'm using, something like #if VISUAL_STUDIO_VERSION > 2015 eventH?.Invoke(this, EventArgs.Empty); #else if(eventH != null) ...
rmbq's user avatar
  • 473

15 30 50 per page