[Test] Compiling libraries for Windows Mobile 6 ARMV4I
I would like to be able to use the Boost.Test library for Windows Mobile 6 ARMV4I projects compiled by Visual Studio 2008. I can successfully compile the Boost.Signals, Boost.Thread, Boost.System, and Boost.Random libraries; but Boost.Test uses several functions that aren't available under Windows Mobile even with STLPort 5.2.1. Specifically, these are strerror() and getenv(). The actual compile errors I receive are: /test/impl/cpp_main.ipp(38) : error C2039: 'getenv' : is not a member of '`global namespace'' /test/impl/cpp_main.ipp(38) : error C2873: 'getenv' : symbol cannot be used in a using-declaration /test/impl/cpp_main.ipp(38) : error C2039: 'strerror' : is not a member of '`global namespace'' /test/impl/cpp_main.ipp(38) : error C2873: 'strerror' : symbol cannot be used in a using-declaration /test/impl/execution_monitor.ipp(1306) : error C2039: 'strerror' : is not a member of 'stlpd_std' /test/impl/execution_monitor.ipp(1306) : error C3861: 'strerror': identifier not found /test/impl/cpp_main.ipp(106) : error C2039: 'getenv' : is not a member of 'stlp_std' /test/impl/cpp_main.ipp(106) : error C3861: 'getenv': identifier not found I have seen past postings by other users that have suggested they have supplemented STLPort with these functions (particularly posts relating to VeetoFTC), but I have yet to see an actual example of the code changes necessary to do that. Can anybody suggest the least intrusive way to add this functionality so that I can compile the rest of Boost? Thanks, PaulH
Paul Heil
Boost.Test uses several functions that aren't available under Windows Mobile even with STLPort 5.2.1.
I do not know how to implement them, but you can easily implement your own versions and put them in corresponding section in Boost.Test config. Usually there is an ifdef section dedicated to your own setup. Gennadiy
I've found "boost\test\detail\config.hpp". Is that what you were referring
to? What section is the corresponding one for supplementing the standard
library in that file? I don't see it.
Ideally, I would like to add this to STLPort, I think. It is updated far
less often than Boost so maintenance would be lower. Also, that way other
Boost libraries could take advantage of the supplemental functions.
-PaulH
On Fri, Apr 29, 2011 at 2:42 PM, Gennadiy Rozental
Paul Heil
writes: Boost.Test uses several functions that aren't available under Windows Mobile even with STLPort 5.2.1.
I do not know how to implement them, but you can easily implement your own versions and put them in corresponding section in Boost.Test config. Usually there is an ifdef section dedicated to your own setup.
Gennadiy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Gennadiy Rozental
-
Paul Heil