Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
14 replies Latest Post - ‏2012-12-07T11:56:38Z by chr_btc-es
RichaM
RichaM
70 Posts
ACCEPTED ANSWER

Pinned topic TestConductor Error while building in assertion mode

‏2012-12-04T06:00:39Z |
Hi

I am using my own configuration enviroment which is using VS 2008 as compiler. I am using Rhapsody 7.6.1

I have created a class and building a test architecture in assertion mode ,it is building fine. Now i add a test case and update the test case and build it. While building I get following error:

TCon_ABC.obj : error LNK2019: unresolved external symbol "void __cdecl ABC1_osc_goals_evaluate(int)" (?ABC1_osc_goals_evaluate@@YAXH@Z) referenced in function "public: void __thiscall TCon_ABC::dump_code_coverage(void)" (?dump_code_coverage@TCon_ABC@@QAEXXZ)

Can anyone help me with this error.
Updated on 2012-12-07T11:56:38Z at 2012-12-07T11:56:38Z by chr_btc-es
  • chr_btc-es
    chr_btc-es
    67 Posts
    ACCEPTED ANSWER

    Re: TestConductor Error while building in assertion mode

    ‏2012-12-04T08:13:27Z  in response to RichaM
    Hi,

    please try Rhapsody menu Code->Clean, then update and build the test case again.

    Does this solve the linker error?

    Regards, Christian.
    • RichaM
      RichaM
      70 Posts
      ACCEPTED ANSWER

      Re: TestConductor Error while building in assertion mode

      ‏2012-12-04T08:31:43Z  in response to chr_btc-es
      No it is not helping.

      I am using my own configuration and as per your last post i had also created a xml and added it in CodecoverageOptionFileName tag.

      I am attaching the xml file I kept at C drive and added the path in tags.
      • chr_btc-es
        chr_btc-es
        67 Posts
        ACCEPTED ANSWER

        Re: TestConductor Error while building in assertion mode

        ‏2012-12-04T11:08:48Z  in response to RichaM
        Hi,

        if you are using VS 2008, the options file should contain these attributes: name="MSVC" version="1500"

        For your own environment, do you have properties like CPP_CG::<envname>>::CPPCompileCommand?

        Regards, Christian.
        • RichaM
          RichaM
          70 Posts
          ACCEPTED ANSWER

          Re: TestConductor Error while building in assertion mode

          ‏2012-12-04T11:29:46Z  in response to chr_btc-es
          Hi Chris

          Thanks for the reply.

          Yeah i tried changing option xml file with MSVC9 and version 1500.

          Regarding CPP_CG::Enviroment::CPP Compile commands, following is the content

          "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $OMFileCPPCompileSwitches "$OMFileImpPath"
          $(CREATE_OBJ_DIR)
          $(CPP) $OMFileCPPCompileSwitches /Fo"$OMFileObjPath" "$OMFileImpPath"
          if exist "$OMFileImpPath.bak" copy "$OMFileImpPath" "$OMFileImpPath.annotated"
          if exist "$OMFileImpPath.bak" move "$OMFileImpPath.bak" "$OMFileImpPath"

          I am parallely trying with default configuration MSVC9 as well, compile command is same in both the configurations.
          • RichaM
            RichaM
            70 Posts
            ACCEPTED ANSWER

            Re: TestConductor Error while building in assertion mode

            ‏2012-12-04T12:33:18Z  in response to RichaM
            Also I would like to add more information to this:

            When i am compiling TC project in MSVC9 after building scheduler , i see

            "Starting annotation of file class_0.cpp" and then further some annotation commands

            However with my own enviroment this annotation does not start, it simply builds all classes in row. And then it gives linking error.
            • chr_btc-es
              chr_btc-es
              67 Posts
              ACCEPTED ANSWER

              Re: TestConductor Error while building in assertion mode

              ‏2012-12-04T13:09:44Z  in response to RichaM
              Just to be sure: Your CG Configurations have the stereotype <<TestingConfiguration>> set, right?

              Is it possible to attache your model or the folder with the generated code when using your environment?
              • RichaM
                RichaM
                70 Posts
                ACCEPTED ANSWER

                Re: TestConductor Error while building in assertion mode

                ‏2012-12-05T08:31:45Z  in response to chr_btc-es
                Hi Chris

                Configuration is correct.

                Though I cannot attach the model, however if there is any specific file you would like to see I can manage to show you that.

                I have tried with all the compile commands,linker commands

                Everything looks same. As of now I am clueless on what to see. One major difference I noted while building was:

                MSVC9:
                Executing: ""C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Share"\etc\msvc9make.bat TPkg_class_0_Comp.mak build x86"
                Setting environment for using Microsoft Visual Studio 2008 x86 tools.
                TCon_class_0.cpp
                TCon_class_0.cpp(29) : warning C4355: 'this' : used in base member initializer list

                TCon_class_0_Scheduler.cpp

                Starting annotation of file class_0.cpp

                C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Project\TPkg_class_0_Comp\DefaultConfig>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/cppfs.exe" --options_file "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/args1_cppfs.txt"1>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/out1_fs.txt" 2>&1
                C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Project\TPkg_class_0_Comp\DefaultConfig>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/cpprs.exe" --options_file "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/args2_cpprs.txt" 1>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/out2_rs.txt" 2>&1

                C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Project\TPkg_class_0_Comp\DefaultConfig>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/cppma.exe" --options_file "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/args4_cppma.txt" 1>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/out4_ma.txt" 2>&1

                C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Project\TPkg_class_0_Comp\DefaultConfig>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCGoalDefinition.exe" "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/class_0_cpp1/AnnoInfo.xml" "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/ModelAnalysis.xml" "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/class_0_cpp1/AnnotatedCode.int.c" 1 class_01_osc_goals_evaluate rtc_goal_dumptofile "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/GDInfo.txt" "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/class_0_cpp1/AnaDBDesc.xml" "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/class_0.cpp" 1>"C:/Program Files/IBM/Rational/Rhapsody/7.6.1/Project/TPkg_class_0_Comp/DefaultConfig/tmp/out6_gd.txt" 2>&1

                Annotation finished successfully.
                class_0.cpp
                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(935) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(976) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1001) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1008) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1015) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation
                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1022) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation
                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(935) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(976) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

                1 file(s) copied.
                DummyDriver_of_class_0.cpp
                CSC_SD_tc_0.cpp
                TCon_class_0_Architecture.cpp
                TPkg_class_0.cpp
                MainTPkg_class_0_Comp.cpp
                Linking TPkg_class_0_Comp.exe
                LINK : TPkg_class_0_Comp.exe not found or not built by the last incremental link; performing full link
                Microsoft (R) Manifest Tool version 5.2.3790.2075
                Copyright (c) Microsoft Corporation 2005.
                All rights reserved.

                Build Done

                However for my own configuration:

                Leaf:
                Executing: ""C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Share"\etc\msvc9make.bat TPkg_ABC_2_Comp.mak build "
                Setting environment for using Microsoft Visual Studio 2008 x86 tools.
                TCon_ABC.cpp
                TPkg_ABC_2\TCon_ABC_Architecture\TCon_ABC.cpp(37) : warning C4355: 'this' : used in base member initializer list

                TCon_ABC_Scheduler.cpp
                ABC.cpp
                DummyDriver_of_ABC.cpp
                CSC_SD_tc_0.cpp
                TCon_ABC_Architecture.cpp
                TPkg_ABC_2.cpp
                TCon_ABC_TestControl.cpp
                Default.cpp
                MainTPkg_ABC_2_Comp.cpp
                Linking TPkg_ABC_2_Comp.exe
                TCon_ABC.obj : error LNK2019: unresolved external symbol "void __cdecl ABC1_osc_goals_evaluate(int)" (?ABC1_osc_goals_evaluate@@YAXH@Z) referenced in function "public: void __thiscall TCon_ABC::dump_code_coverage(void)" (?dump_code_coverage@TCon_ABC@@QAEXXZ)
                TPkg_ABC_2_Comp.exe : fatal error LNK1120: 1 unresolved externals
                NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' : return code '0x460'

                Not sure what to check to make it work.
                • chr_btc-es
                  chr_btc-es
                  67 Posts
                  ACCEPTED ANSWER

                  Re: TestConductor Error while building in assertion mode

                  ‏2012-12-05T09:27:34Z  in response to RichaM
                  Hi,

                  can you attach: The Makefile of the CG Configuration which uses environment 'Leaf' and a screen shot of the Rhapsody browser with the two CG Components/Configurations expanded?

                  Regards, Christian.
                  • RichaM
                    RichaM
                    70 Posts
                    ACCEPTED ANSWER

                    Re: TestConductor Error while building in assertion mode

                    ‏2012-12-05T10:34:58Z  in response to chr_btc-es
                    Hi,

                    Below is the make file content. Also attaching the screenshot you mentioned
                    #
                    1. Changes from the origonal property file to LEAF (Nov. 2011 JH)
                    #
                    1. Added LEAF configurations macros
                    2. Property CPPCompileDebug /MDd to /MTd
                    3. Property CPPCompileRelease /MD to /MT
                    #

                    1. Target type (Debug/Release) ##################
                    ############################################################
                    CPPCompileDebug=/Zi /Od /D "_DEBUG" /MTd /Fd"$(TARGET_NAME)"
                    CPPCompileRelease= /Ox /D"NDEBUG" /MT /Fd"$(TARGET_NAME)"
                    LinkDebug=
                    LinkRelease=
                    BuildSet=Debug

                    ConfigurationCPPCompileSwitches= /I . /I . /I $(OMROOT)\LangCpp /I $(OMROOT)\LangCpp\oxf /nologo /W3 $(ENABLE_EH) $(CRT_FLAGS) $(CPPCompileDebug) /D "_AFXDLL" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WINDOWS" /D "OM_USE_STL" $(INST_FLAGS) $(INCLUDE_PATH) $(INST_INCLUDES) /c

                    1. Compilation flags ######################
                    ############################################################
                    LIB_PREFIX=MSVC9Stl
                    INCLUDE_QUALIFIER=/I

                    CRT_FLAGS=/D "_CRT_SECURE_NO_DEPRECATE"
                    ENABLE_EH=/EHa

                    WINMM_LIB=winmm.lib

                    1. Commands definition #########################
                    #################################################################
                    RMDIR = rmdir
                    LIB_CMD=link.exe -lib
                    LINK_CMD=link.exe
                    LIB_FLAGS=$(LinkDebug) /NOLOGO
                    LINK_FLAGS=$(LinkDebug) /NOLOGO /SUBSYSTEM:CONSOLE /MACHINE:X86 /nodefaultlib:"libc.lib"

                    1. Generated macros #################
                    ##################################################

                    FLAGSFILE=
                    RULESFILE=
                    OMROOT="C:\Program Files\IBM\Rational\Rhapsody\7.6.1\Share"

                    CPP_EXT=.cpp
                    H_EXT=.h
                    OBJ_EXT=.obj
                    EXE_EXT=.exe
                    LIB_EXT=.lib

                    INSTRUMENTATION=None

                    TIME_MODEL=RealTime

                    TARGET_TYPE=Executable

                    TARGET_NAME=TPkg_ABC_1_Comp

                    all : $(TARGET_NAME)$(EXE_EXT) TPkg_ABC_1_Comp.mak

                    TARGET_MAIN=MainTPkg_ABC_1_Comp

                    LIBS=

                    INCLUDE_PATH= \
                    $(INCLUDE_QUALIFIER)"C:\Development" \
                    $(INCLUDE_QUALIFIER)$(OMROOT)/../TestConductor \
                    $(INCLUDE_QUALIFIER)$(OMROOT)/LangCpp/osconfig/WIN32

                    ADDITIONAL_OBJS=

                    OBJS= \
                    TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.obj \
                    TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.obj \
                    Default\ABC.obj \
                    TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.obj \
                    TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.obj \
                    TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.obj \
                    TPkg_ABC_1\TPkg_ABC_1.obj \
                    TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.obj \
                    Default\Default.obj
                    OBJ_DIR=

                    !IF "$(OBJ_DIR)"!=""
                    CREATE_OBJ_DIR=if not exist $(OBJ_DIR) mkdir $(OBJ_DIR)
                    CLEAN_OBJ_DIR= if exist $(OBJ_DIR) $(RMDIR) $(OBJ_DIR)
                    !ELSE
                    CREATE_OBJ_DIR=
                    CLEAN_OBJ_DIR=
                    !ENDIF

                    1. Predefined macros ############################
                    #######################################################################
                    $(OBJS) : $(INST_LIBS) $(OXF_LIBS)

                    LIB_POSTFIX=
                    !IF "$(BuildSet)"=="Release"
                    LIB_POSTFIX=R
                    !ENDIF

                    !IF "$(TARGET_TYPE)" == "Executable"
                    LinkDebug=$(LinkDebug) /DEBUG
                    LinkRelease=$(LinkRelease) /OPT:NOREF
                    !ELSEIF "$(TARGET_TYPE)" == "Library"
                    LinkDebug=$(LinkDebug)
                    !ENDIF
                    !IF "$(INSTRUMENTATION)" == "Animation"
                    INST_FLAGS=/D "OMANIMATOR"
                    INST_INCLUDES=/I $(OMROOT)\LangCpp\aom /I $(OMROOT)\LangCpp\tom
                    INST_LIBS= $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)aomanim$(LIB_POSTFIX)$(LIB_EXT)
                    OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxfinst$(LIB_POSTFIX)$(LIB_EXT) $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)omComAppl$(LIB_POSTFIX)$(LIB_EXT)
                    SOCK_LIB=wsock32.lib

                    !ELSEIF "$(INSTRUMENTATION)" == "Tracing"
                    INST_FLAGS=/D "OMTRACER"
                    INST_INCLUDES=/I $(OMROOT)\LangCpp\aom /I $(OMROOT)\LangCpp\tom
                    INST_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)tomtrace$(LIB_POSTFIX)$(LIB_EXT) $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)aomtrace$(LIB_POSTFIX)$(LIB_EXT)
                    OXF_LIBS= $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxfinst$(LIB_POSTFIX)$(LIB_EXT) $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)omComAppl$(LIB_POSTFIX)$(LIB_EXT)
                    SOCK_LIB=wsock32.lib

                    !ELSEIF "$(INSTRUMENTATION)" == "None"
                    INST_FLAGS=
                    INST_INCLUDES=
                    INST_LIBS=
                    OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxf$(LIB_POSTFIX)$(LIB_EXT)
                    SOCK_LIB=

                    !ELSE
                    !ERROR An invalid Instrumentation $(INSTRUMENTATION) is specified.
                    !ENDIF

                    #########################
                    1. LEAF configurations ##
                    #########################
                    LEAF_PREFIX=..\..\..\..\..\Lib
                    LEAF_LIB_PATH=$(LEAF_PREFIX)\WebDebug

                    !IF "$(BuildSet)" == "Release"
                    LEAF_LIB_PATH=$(LEAF_PREFIX)\Release
                    !ENDIF

                    !IF "$(INSTRUMENTATION)" == "Animation"
                    LEAF_LIB_PATH=$(LEAF_PREFIX)\AnimWebDebug
                    !ENDIF
                    #!Message LEAF Lib Path $(LEAF_LIB_PATH)
                    #!Message LEAF $(BuildSet), Debug
                    #########################

                    1. Generated dependencies ########################
                    ##################################################################
                    TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.obj : TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.h Default\ABC.h TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.h TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.obj" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp.bak" move "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp.bak" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.cpp"
                    TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.obj : TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.h TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h TPkg_ABC_1\TPkg_ABC_1.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.obj" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp.bak" move "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp.bak" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.cpp"
                    Default\ABC.obj : Default\ABC.cpp Default\ABC.h Default\Default.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "Default\ABC.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"Default\ABC.obj" "Default\ABC.cpp"
                    if exist "Default\ABC.cpp.bak" copy "Default\ABC.cpp" "Default\ABC.cpp.annotated"
                    if exist "Default\ABC.cpp.bak" move "Default\ABC.cpp.bak" "Default\ABC.cpp"
                    TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.obj : TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.h Default\ABC.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.obj" "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp" "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp.bak" move "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp.bak" "TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.cpp"
                    TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.obj : TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.h TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h TPkg_ABC_1\TPkg_ABC_1.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.obj" "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp" "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp.bak" move "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp.bak" "TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.cpp"
                    TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.obj : TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.h TPkg_ABC_1\TPkg_ABC_1.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.obj" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp.bak" move "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp.bak" "TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.cpp"
                    TPkg_ABC_1\TPkg_ABC_1.obj : TPkg_ABC_1\TPkg_ABC_1.cpp TPkg_ABC_1\TPkg_ABC_1.h TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.h TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TPkg_ABC_1.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TPkg_ABC_1.obj" "TPkg_ABC_1\TPkg_ABC_1.cpp"
                    if exist "TPkg_ABC_1\TPkg_ABC_1.cpp.bak" copy "TPkg_ABC_1\TPkg_ABC_1.cpp" "TPkg_ABC_1\TPkg_ABC_1.cpp.annotated"
                    if exist "TPkg_ABC_1\TPkg_ABC_1.cpp.bak" move "TPkg_ABC_1\TPkg_ABC_1.cpp.bak" "TPkg_ABC_1\TPkg_ABC_1.cpp"
                    TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.obj : TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.h TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.h TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.h TPkg_ABC_1\TPkg_ABC_1.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.obj" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp.bak" copy "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp.annotated"
                    if exist "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp.bak" move "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp.bak" "TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.cpp"
                    Default\Default.obj : Default\Default.cpp Default\Default.h Default\ABC.h
                    "C:/Program Files/IBM/Rational/Rhapsody/7.6.1/TestConductor/TCCodeAnnotation.exe" "$(MAKEDIR)" $(ConfigurationCPPCompileSwitches) "Default\Default.cpp"
                    $(CREATE_OBJ_DIR)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"Default\Default.obj" "Default\Default.cpp"
                    if exist "Default\Default.cpp.bak" copy "Default\Default.cpp" "Default\Default.cpp.annotated"
                    if exist "Default\Default.cpp.bak" move "Default\Default.cpp.bak" "Default\Default.cpp"

                    $(TARGET_MAIN)$(OBJ_EXT) : $(TARGET_MAIN)$(CPP_EXT) $(OBJS)
                    $(CPP) $(ConfigurationCPPCompileSwitches) /Fo"$(TARGET_MAIN)$(OBJ_EXT)" $(TARGET_MAIN)$(CPP_EXT)

                    1. Linking instructions ###############################
                    ###############################################################################
                    $(TARGET_NAME)$(EXE_EXT): $(OBJS) $(ADDITIONAL_OBJS) $(TARGET_MAIN)$(OBJ_EXT) TPkg_ABC_1_Comp.mak
                    @echo Linking $(TARGET_NAME)$(EXE_EXT)
                    $(LINK_CMD) $(TARGET_MAIN)$(OBJ_EXT) $(OBJS) $(ADDITIONAL_OBJS) \
                    $(LIBS) \
                    $(INST_LIBS) \
                    $(OXF_LIBS) \
                    $(SOCK_LIB) \
                    $(WINMM_LIB) \
                    $(LINK_FLAGS) /out:$(TARGET_NAME)$(EXE_EXT)

                    $(TARGET_NAME)$(LIB_EXT) : $(OBJS) $(ADDITIONAL_OBJS) TPkg_ABC_1_Comp.mak
                    @echo Building library $@
                    $(LIB_CMD) $(LIB_FLAGS) /out:$(TARGET_NAME)$(LIB_EXT) $(OBJS) $(ADDITIONAL_OBJS) $(LIBS)
                    if not exist $(LEAF_LIB_PATH) mkdir $(LEAF_LIB_PATH)
                    if exist $(TARGET_NAME).pdb copy /Y $(TARGET_NAME).pdb $(LEAF_LIB_PATH)
                    if exist $(TARGET_NAME)$(LIB_EXT) copy /Y $(TARGET_NAME)$(LIB_EXT) $(LEAF_LIB_PATH)

                    clean:
                    @echo Cleanup
                    if exist TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.obj erase TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC.obj
                    if exist TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.obj erase TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_Scheduler.obj
                    if exist Default\ABC.obj erase Default\ABC.obj
                    if exist TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.obj erase TPkg_ABC_1\TCon_ABC_Architecture\DummyDriver_of_ABC.obj
                    if exist TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.obj erase TPkg_ABC_1\TCon_ABC_TestControl\CSC_SD_tc_0.obj
                    if exist TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.obj erase TPkg_ABC_1\TCon_ABC_Architecture\TCon_ABC_Architecture.obj
                    if exist TPkg_ABC_1\TPkg_ABC_1.obj erase TPkg_ABC_1\TPkg_ABC_1.obj
                    if exist TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.obj erase TPkg_ABC_1\TCon_ABC_TestControl\TCon_ABC_TestControl.obj
                    if exist Default\Default.obj erase Default\Default.obj
                    if exist $(TARGET_MAIN)$(OBJ_EXT) erase $(TARGET_MAIN)$(OBJ_EXT)
                    if exist *$(OBJ_EXT) erase *$(OBJ_EXT)
                    if exist $(TARGET_NAME).pdb erase $(TARGET_NAME).pdb
                    if exist $(TARGET_NAME)$(LIB_EXT) erase $(TARGET_NAME)$(LIB_EXT)
                    if exist $(TARGET_NAME).ilk erase $(TARGET_NAME).ilk
                    if exist $(TARGET_NAME)$(EXE_EXT) erase $(TARGET_NAME)$(EXE_EXT)
                    if exist $(LEAF_LIB_PATH)$(TARGET_NAME).pdb erase $(LEAF_LIB_PATH)$(TARGET_NAME).pdb
                    if exist $(LEAF_LIB_PATH)$(TARGET_NAME)$(LIB_EXT) erase $(LEAF_LIB_PATH)$(TARGET_NAME)$(LIB_EXT)
                    $(CLEAN_OBJ_DIR)
                    • chr_btc-es
                      chr_btc-es
                      67 Posts
                      ACCEPTED ANSWER

                      Re: TestConductor Error while building in assertion mode

                      ‏2012-12-05T16:29:50Z  in response to RichaM
                      Hi,

                      can you compare the value of property CPP_CG::Package::GenerateDirectory of your CG Configurations and the TestPackages: Is it checked for the Configuration using Leaf environmment? Maybe this is the difference?
                      This property is generally supported by TC but it might be there are some cases the instrumentation doesn't work if this property is used.

                      Regards, Christian.
                      • RichaM
                        RichaM
                        70 Posts
                        ACCEPTED ANSWER

                        Re: TestConductor Error while building in assertion mode

                        ‏2012-12-07T04:31:55Z  in response to chr_btc-es
                        Thanks a lot Chris

                        Our thing has started working...
                        • chr_btc-es
                          chr_btc-es
                          67 Posts
                          ACCEPTED ANSWER

                          Re: TestConductor Error while building in assertion mode

                          ‏2012-12-07T10:46:12Z  in response to RichaM
                          Great!

                          If you see any possible improvements of integration or need more guidance in error messages, let us know. Either in this forum or by opening enhancement requests.

                          Regards, Christian.
                          • RichaM
                            RichaM
                            70 Posts
                            ACCEPTED ANSWER

                            Re: TestConductor Error while building in assertion mode

                            ‏2012-12-07T11:16:34Z  in response to chr_btc-es
                            Hi Chris

                            Sorry what kind of possible improvements of integration or wht is enhancement request..

                            Cant understand your last post.

                            Anywaz thanks again for all your help.
                            • chr_btc-es
                              chr_btc-es
                              67 Posts
                              ACCEPTED ANSWER

                              Re: TestConductor Error while building in assertion mode

                              ‏2012-12-07T11:56:38Z  in response to RichaM
                              What I meant is: If you think TC could be improved to make it easier to compute code coverage when using a user defined environment, let us know. In such case, please ask your IBM contact/support to open an enhancement request.