Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#22 Do not compile mingw 4.3.0

open
nobody
None
5
2012-10-17
2008-05-11
No

I try compile ibpp test from mingw gcc 4.3.0 Alpha
But Compiler show error.

In trank rev 103
[code]
g++ -DIBPP_WINDOWS -Wall -mthreads -mconsole -D_MT -DWIN32_LEAN_AND_MEAN -O3 -orelease/core/driver.o -c ../../core/driver.cpp
../../core/driver.cpp: In member function 'virtual void ibpp_internals::DriverImpl::Load(const std::string&)': ../../core/driver.cpp:76: error: 'getenv' was not declared in this scope
../../core/driver.cpp:92: error: 'putenv' was not declared in this scope
../../core/driver.cpp:112: error: 'putenv' was not declared in this scope
gmake: *** [release/core/driver.o] Error 1
[/code]
If add #include <cstdlib> in driver.cpp all compile Ok.

In branch/ibpp-2-6 rev 103
[code]
g++ -DIBPP_WINDOWS -Wall -mconsole -mthreads -D_MT -DWIN32_LEAN_AND_MEAN -O3 -orelease/core/_ibpp.o -c ../../core/_ibpp.cpp
../../core/_ibpp.cpp: In member function 'ibpp_internals::GDS ibpp_internals::GDS::Call()':
../../core/_ibpp.cpp:123: error: 'getenv' was not declared in this scope
../../core/_ibpp.cpp:139: error: 'putenv' was not declared in this scope
../../core/_ibpp.cpp:159: error: 'putenv' was not declared in this scope
gmake:
** [release/core/_ibpp.o] Error 1[/code]

If add #include <cstdlib> in _ibpp.cpp all compile Ok.

Related

Code: code

Discussion

  • Logged In: YES
    user_id=980085
    Originator: YES

    File Added: trunk.diff