gcc - boost test on windows with mingw compiler error: putenv not declared -


I'm trying to compile a library with Mingav in the window, which promotes I compiled with: After that, I create a library with sankai and mingav. The construction of DLL works fine, but when I try to build tests, I get:

  c: / boost / boost_1_55_0 / boost / test / utils / runtime /config.hpp: 95: 51: Error: putenv was not declared in this scope: putenv (const_cast & lt; char *> (fs.str (.) C_str ()));   

Then the error comes from the boost header and I do not know how to fix it.

What I am trying to create:

It uses c99 and c ++ 11.

This seems to be a bug in promoting. It has happened to others as well:

The solution (or better: solution) is to add the following lines before adding the boost :: test: :

  #ifdef __MINGW32__ // does not define the necessary putenv () by Mingav Butt. Test extreiter petenav (four *); #endif    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -