gitfredy / google-glog

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

Can't get GLOG_log_dir to work #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, it seems that the GLOG_log_dir environment variable on my Visual Studio 
2008 project just doesnt work.

I have a libglog lib project and an executable project. In the properties of 
the executable project i put GLOG_log_dir=$(TargetDir) in the preprocessor 
definitions field and compiled, but this doesnt worked.

What version of the product are you using? On what operating system?
0.3.1 on Windows 7

Original issue reported on code.google.com by taci...@gmail.com on 21 Sep 2010 at 7:08

GoogleCodeExporter commented 9 years ago
I forgot to tell that i also tried without the $(TargetDir) macro, and i tried 
also in the example project that comes with the glog download package.

Original comment by taci...@gmail.com on 21 Sep 2010 at 7:27

GoogleCodeExporter commented 9 years ago
you need to have that environment variable at run-time not at compile time as 
far as I understood. Its the same as with GLOG_logtostderr=1

Original comment by br.hofga...@gmail.com on 30 Oct 2010 at 6:54

GoogleCodeExporter commented 9 years ago
Correct, GLOG_log_dir is an environment variable and not a preprocessor macro.  
I am not familiar with Visual Studio, but the following information may be 
relevant:

http://msdn.microsoft.com/en-us/library/ee479070(v=winembedded.60).aspx

Marking as WontFix because this is working as intended.

Original comment by hlsyou...@gmail.com on 28 Dec 2011 at 4:01