Bug report #4059

building globe plugin fails: 'setenv': identifier not found

Added by Alister Hood over 13 years ago. Updated over 13 years ago.

Status:Closed
Priority:Normal
Assignee:Pirmin Kalberer
Category:C++ plugins/Globe
Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:14044

Description

Building the globe plugin under MSVC fails like this:

2>..\\..\\..\\..\\qgis.git\\src\\plugins\\globe\\globe_plugin.cpp(634) : error C3861: 'setenv': identifier not found

I can get past it with a workaround suggested by Google ;)

@#if (_MSC_VER >= 1400) // Visual Studio 2005
#include <sstream>

int setenv(const char name, const char *value, int /*rewrite/) {
std::stringstream sstr;
sstr<<name<<'='<<value;
return _putenv(sstr.str().c_str());
}
#endif@

History

#1 Updated by Alister Hood over 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in trunk

Also available in: Atom PDF