pekingduck / googletest

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

gtest_prod_test is not linking for Windows CE platform. #382

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT NOTE: PLEASE send issues or requests to
http://groups.google.com/group/googletestframework *instead of here*.
This issue tracker is NOT regularly monitored.

If you really need to create a new issue, please provide the information
asked for below.

What steps will reproduce the problem?
1. Convert gtest and gtest_main to compile both of them for CE. I changed the 
preporocessor settings to 
"WIN32;NDEBUG;_LIB;_i386_;UNDER_CE=$(CEVER);_WIN32_WCE=$(CEVER);$(CePlatform);UN
ICODE;_UNICODE;_X86_;x86;_WIN32_WCE_CEPC;". With this setting, gtest & 
gtest_main compiles. Change the gtest_prod_test preprocessor setting to 
"WIN32;NDEBUG;_i386_;UNDER_CE=$(CEVER);_WIN32_WCE=$(CEVER);$(CePlatform);UNICODE
;_UNICODE;_X86_;x86;_WIN32_WCE_CEPC;_CONSOLE". Then compile. 
2. its giving following error.
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
3.

What is the expected output? What do you see instead?
It should compile and I should be able to see the results in the example given 
which comes along with gtest 1.6.0

What version of Google Test are you using? On what operating system?
gtest 1.6.0

Please provide any additional information below, such as a code snippet.

Original issue reported on code.google.com by md.tamee...@gmail.com on 29 Sep 2011 at 3:41

GoogleCodeExporter commented 9 years ago
Please make sure you are linking your test with gtest_main.lib and report. If 
that doesn't help, does building with your own main() do?

Original comment by vladlosev on 13 Oct 2011 at 10:27