Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4060826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:23:18+00:00 2026-05-20T15:23:18+00:00

My need is simple. I have to compile and use googletest on windows using

  • 0

My need is simple. I have to compile and use googletest on windows using MinGW with msys. Has anyone some experience doing this?

Thanks for answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:23:18+00:00Added an answer on May 20, 2026 at 3:23 pm

    It took me some time but I figured it out. Here is the guide for anyone who face the same problem.

    To be able to compile GoogleTest on Windows follow this instructions:

    1. I assume you have MinGW with MSYS istalled.

    2. Download and install CMake from the official site http://www.cmake.org/. Use the Win32 installer
      version. Once you have completed the installation process copy executable files from
      “xxx/CMake/bin” to “xxx/MinWG/bin”.

    3. Download and install Python from http://www.python.org/. Again, the Windows installer does the job
      fine.
      Once you have completed the installation process copy the “python.exe”
      form python folder to
      “xxx/MinWG/bin”.

    4. Download the latest stable GoogleTest from http://code.google.com/p/googletest/ and unpack it into some folder.

    5. Run MSYS terminal and execute following commands.

      cd xxx/gtest-x.x.x
      cmake -G "MSYS Makefiles"
      make
      
    6. If you have compilation errors from pthread follow these instructions.

    7. Copy the include folder “xxx/gtest-x.x.x/include” into your MinGW gcc include.
      Copy the library files “xxx/gtest-x.x.x/*.a” into your MinGW gcc lib.

    8. When you compile tests add “-lgtest” parameter to gcc.

    EDIT
    Commentators are right. The coping of executables worked for me but generaly it is not a good practice. Try to use a symbolic link instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a input tag which is non editable, but some times i need
I have several USB mass storage flash drives connected to a Ubuntu Linux computer
I need to solve the following question which i can't get to work by
I need to develop a file indexing application in python and wanted to know
I am trying to load a html page through UIWebview.I need to disable all
We manage a site for a medical charity. They have a number of links
I have a login.jsp page which contains a login form. Once logged in the
I have a snippet to create a 'Like' button for our news site: <iframe
This is beyond both making sense and my control. That being said here is
Is there a way to test if a collection is already initialized? try-catch only?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.