Comments (8)
Unfortunately, I don't have 64bit windows for now. Are there any suggestion how
to
fix _asm error? Just changing from
#if defined(_DEBUG) && defined(_MSC_VER)
to
#if defined(_DEBUG) && defined(_MSC_VER) && !defined(__x86_64__)
works as a quick solution?
Original comment by [email protected]
on 18 Feb 2010 at 11:31
from google-glog.
Sorry, that does not do the trick. The error changes to C4235: nonstandard
extension
used: '_asm' keyword not supported on this architecture
Original comment by [email protected]
on 7 Apr 2010 at 2:05
from google-glog.
Thanks for your reply! I've just found this page: http://msdn.microsoft.com/en-
us/library/b0084kay(VS.80).aspx
It looks like
#if defined(_DEBUG) && defined(_MSC_VER) && !defined(_M_X64)
should work. Could you check if it works?
Thanks!
Original comment by [email protected]
on 7 Apr 2010 at 2:26
from google-glog.
That did the trick. Thanks for the quick turn-around.
Original comment by [email protected]
on 7 Apr 2010 at 2:44
from google-glog.
Thanks for the report again! I'll commit this change later.
Original comment by [email protected]
on 7 Apr 2010 at 2:48
from google-glog.
'_asm int 3' just triggers a breakpoint: better is to just do this with a call
to
DebugBreak(). No need to modify #if line at all.
(I had this line in my working copy so I could do a 64-bit Windows build
myself. It
looks like that's the only change besides to the VS projects.)
Original comment by [email protected]
on 8 Apr 2010 at 5:19
from google-glog.
I have also test the __debugbreak(); and it works fine.
Original comment by [email protected]
on 7 Feb 2011 at 4:11
from google-glog.
Ping.
The various fixes mentioned here never seem to have actually made it into the
repository. As such there are still issues on 64-bit Windows due to _asm.
Is it possible to get logging.cc:1457 updated: _asm int 3 --> __debugbreak()
From this: http://msdn.microsoft.com/en-us/library/f408b4et.aspx it appears
that it is the cleanest 32/64 agnostic way to invoke a breakpoint.
Thanks!
Original comment by [email protected]
on 17 Oct 2013 at 1:34
from google-glog.
Related Issues (20)
- Cannot Build Google-GLog on Visual Studio 2013 HOT 2
- Warning Reduction... HOT 2
- -lexecinfo is needed for backtrace() on FreeBSD
- in VS2008 release case, the process crashed when glog output int,long and so on(numerical var)
- Error compiling glog-0.3.3
- unused parameters in mock-log.h
- Link Error while making gLog (recompile with -fIPC)
- .
- make: *** [logging_unittest-logging_unittest.o] Error 1
- Cannot compile on Linux gcc 4.8.1
- vector size() incompatability
- Glog‘s all functions are worked but InstallFailureSignalHandler() Linking failed in vs2010 HOT 1
- Add LOG_EVERY_N_SECS
- V0.3.3 build error under VS 2013 (v120)
- Demangle failed
- Process sleeps forever in FailureSignalHandler it is interrupted by another signal.
- -fPIC issue
- Symbolize can't handler address of plt
- OSX Make Error issue
- Question: how to get log file name?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-glog.