Using google test (gtest) in Borland C + + Builder

Source: Internet
Author: User

Google test version:1.6

C + + Builder Version:xe6

1 Download google test 1.6

2 Unzip the zip file. The project file for C + + build is in CodeGear folder

3 Complie gtest.lib and gtest_main.lib, do not does anything with Gtest_unittest project (cause there might is error.)

4 Set up a sample test project (console application)

Mytestsample

Gtest_src put files of src folder of Gtest here

Include put files of include folder of Gtest here

Lib put gtest.lib and gtest_main.lib here

TESTSRC put the test src here

5 It is OK.

Check the sample project and the Gtest Framework at (http://download.csdn.net/detail/williamwood/7891585)

Using google test (gtest) in Borland C + + Builder

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.