Results 1 to 3 of 3

Thread: Installing gtest (other other testing suite) help, new to Ubuntu

  1. #1
    Join Date
    Feb 2012
    Beans
    1

    Installing gtest (other other testing suite) help, new to Ubuntu

    Hi, I recently made the switch to Ubuntu 11.10 about a month or so ago from windows.

    I am computer science undergraduate and I've been trying to install a testing suite for my c++ programs. My school uses gtest, and this is the one I've been trying to install, but to put it simply, Ive had a hell of a time getting it to work.

    I found some help at http://manpages.ubuntu.com/manpages/...-config.1.html

    The line: If the info and gtest-config programs are properly installed
    at your site, the command

    info gtest-config

    should give you access to the complete manual.

    info gtest-config runs fine, but nothing I try to compile works correctly. It always gives me an error. The compile line I try to use is:


    g++ *.cpp –lpthread –lgtest

    but the errors I get are:
    g++: error: –lpthread: No such file or directory
    g++: error: –lgtest: No such file or directory

    I'm not sure where to go from here, and all the instructions I have found don't really help. Does anyone know how to fix this, or if anyone knows any other testing suites to use I'll give them a shot, I just need something that works.

    Thanks alot

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,634
    Distro
    Ubuntu

    Re: Installing gtest (other other testing suite) help, new to Ubuntu

    Thread moved to Programming Talk.

  3. #3
    Join Date
    Jun 2010
    Beans
    5

    Re: Installing gtest (other other testing suite) help, new to Ubuntu

    Gtest doesn't install .so library in your system. Instead it just creates source files for you to compile, include or do whatever you would like to do with them.
    See the full install file list:
    http://packages.ubuntu.com/quantal/a...t-dev/filelist

    You can find information out there that you need.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •