Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Test execution: error linking test executable for Test unit for selected sources.

Options
pritesh2012ece09
pritesh2012ece09 Posts: 3
edited July 2018 in C/C++test

I created a project in Eclipse 4.6(Neon) in ubuntu 16.04 with parasoft_eclipse_plugin. The test is generated successfully but i am not be able to run the test file because of the linking error. So, my question is how can i link a library that is defined outside of the project.

Tagged:

Best Answer

  • Andrey Madan
    Andrey Madan Posts: 388 ✭✭✭
    Answer ✓
    Options
    1. Can you build the code? Can you please execute Flow Analysis and see if that works?
    2. Please provide what is the compiler you are using to build the code.
    3. Provide the full console output. Click co console....
    4. Provide cpptestscan.bdf
      I want to verify that include paths are all setup correctly.
      Where is the MsgCenter type defined? Which include file? Where is it located?

    Most likely we just don't know path to the include file.

Answers

  • pritesh2012ece09
    Options

    yes i build the Flow Analysis examples it running fine.
    this is my complier info
    /**********# Toolchain information
    TOOLCHAIN =

    CXX =cpptestscan $(TOOLCHAIN)g++
    CC =cpptestscan $(CXX)

    AS = $(TOOLCHAIN)as
    OBJCOPY = $(TOOLCHAIN)objcopy
    SIZE = $(TOOLCHAIN)size
    LD = $(TOOLCHAIN)ld

    Compiler flags

    CXXFLAGS = -m32 -std=c++0x
    CFLAGS = $(CXXFLAGS)**********/

    I know what is the problem actually I used the some function that is defined in some(Msgcenter.cpp/.hpp) that is stored in different location.

Tagged