courtneypresto / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compilation of 1.3.0 fails on Windows Mobile SDK #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try build gtest for Windows Mobile 6 (previously gtest 1.2.1 is
worked) I see this error

fatal error C1083: 
Cannot open include file: 'io.h': No such file or directory 
..\include\gtest\gtest.h    5773

After some research I saw that there wasn't 'io.h' for Windows Mobile 6
So I decided to replace macros for death test detection with this one

#if GTEST_HAS_STD_STRING && (GTEST_OS_LINUX || \
                             GTEST_OS_MAC || \
                             GTEST_OS_CYGWIN || \
                             (GTEST_OS_WINDOWS && _MSC_VER >= 1400 
&& !_WIN32_WCE // this I've added
))
#define GTEST_HAS_DEATH_TEST 1
#include <vector>
#endif  

Eventually - all began to working okay.
Do anyone have other ideas how to fix that ?

Original issue reported on code.google.com by ivan.dya...@gmail.com on 8 Apr 2009 at 10:19

GoogleCodeExporter commented 9 years ago
Also - in case that you're need it
IDE - MSVC 8.0 SP1
Platform - Windows Mobile SDK 6 Refresh

Original comment by ivan.dya...@gmail.com on 8 Apr 2009 at 3:04

GoogleCodeExporter commented 9 years ago
We don't have the Windows Mobile environment, so support for this platform is
experimental and flaky.  Would you like to submit your patch such that it can be
included in the next release?  Please read the GoogleTestDevGuide wiki page for 
how
to do it.  In particular, you need to sign a CLA first.  Thanks.

Original comment by zhanyong...@gmail.com on 9 Apr 2009 at 4:13

GoogleCodeExporter commented 9 years ago
I've discovered that there was a major update in revision 227 - an 
implementation of
POSIX layers - but in case that there are no full POSIX support for Windows 
Mobile in
MSVC - there are needed some external POSIX implementations, such as mingw32ce. 
For
production purposes we now stay on 1.2.1 - but I'll try to build 1.3.0 for 
Windows
Mobile. If there will be any result, I'll create patch and sumbit it - but I 
think
that there will be needed some build guide for Windows Mobile for that. Thanks 
for
support :)

Original comment by ivan.dya...@gmail.com on 9 Apr 2009 at 9:57

GoogleCodeExporter commented 9 years ago
zhanyong.wan Just Install Windows Mobile SDK 6.0
and Emulater is get http://www.microsoft.com/downloads/details.aspx?
FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&displaylang=en

If you install this SDK you can test Windows Mobile Platform in your pc
without Windows Mobile Device.

Original comment by chars...@gmail.com on 18 Apr 2009 at 3:44

GoogleCodeExporter commented 9 years ago
Thanks for the tip, charsyam.  Our main problem is that we are overloaded and 
don't 
have time to work on lesser-common platforms.  Therefore we don't have a plan 
to 
officially support Windows Mobile.  We would like to rely on users like you who 
care 
about using gtest on Windows Mobile to make sure it works there.

Given our lack of resources, I'm closing the issue now such that we can focus 
on 
improvements that impact more people.  If, however, you have a patch, I'd be 
glad to 
review it.  Thanks.

Original comment by zhanyong...@gmail.com on 5 Jun 2009 at 6:18

GoogleCodeExporter commented 9 years ago
I got the same error with gtest 1.3.0 .
I will be glad if you fix this ...
thanks

Original comment by yri...@gmail.com on 10 Jun 2009 at 6:17