cloudy064 / googletest

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

compilation problems of samples of gtest on VS2005 #344

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to compile sample1_unittest.cc that comes in the folder \samples\. 
I am getting the following error :

1>LINK : fatal error LNK1561: entry point must be defined

I am trying to compile it on Visual Studio 2005.

Any input will be helful,

Aldo

Original issue reported on code.google.com by aldo.cam...@gmail.com on 28 Dec 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Please use the discussion group googletestframework@googlegroups.com for 
questions like this.  Thanks.

You should make sure that a main() function is defined.  One way to do that is 
to add gtest_main.cc to your project.

Original comment by w...@google.com on 28 Dec 2010 at 5:54

GoogleCodeExporter commented 9 years ago
Dear Group:

Does somebody could tell me how to set up a new project in msvc? I did
follow the instruction in the online documentation but it's not clear and
besides is not compiling. I am just trying to compile the samples that comes
with gtest. Please any input will be helpfull.

Have a nice new year 2011!!!

Aldo

Original comment by aldo.cam...@gmail.com on 30 Dec 2010 at 7:40