wofan / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Win64 compilation failure with Debug configuration (Under MSVS) #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Change solution platfrom x64 in MSVS (e.g. 2010)
2. Build project with Debug configuration.

Got:
..\..\src\logging.cc(1238):error C4235: nonstandard extension used : '_asm' 
keyword not supported on this architecture.
Location: logging.cc, static function logging_fail.
Reasons:
x64 platfrorm hasn't inline assembly.
Fixes:
Change to _asm int 3 to eq. intrinsic __debugbreak();
(proved here - http://msdn.microsoft.com/en-us/library/f408b4et.aspx)

Original issue reported on code.google.com by TheDZ...@gmail.com on 25 Aug 2011 at 11:31

GoogleCodeExporter commented 8 years ago
Here is a patch file which provides compatibility with MSVC x64 compiler (int 3 
-> __debugbreak() ).
It's completely ok to use, because this section is guarded with a #ifdef MSVC.

Original comment by kolesnic...@gmail.com on 15 Feb 2013 at 1:40

Attachments: