Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8863

Root include path not working after using gSystem->ChangeDirectory

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Medium
    • Resolution: Unresolved
    • 6.08/06
    • 6.12/02, 6.14/00
    • Cling
    • None
    • Ubuntu 17.04 64-bit GCC 6.3

    Description

      When gSystem->ChangeDirectory() is used during the execution of a program to move to a different directory, the subsequent attempts to locate header files will fail. This is even the case when the proper folder to the header file(s) is set via ROOT_INCLUDE_PATH env variable.

      Attached is a simple reproducer project:
      cd root-include-bug
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
      export ROOT_INCLUDE_PATH=$(pwd)
      make
      ./loader
      -> this works
      ./loader changeDir
      -> this fails

      Attachments

        Activity

          People

            axel Axel Naumann
            4ee2b23b4f6bc91953bd Thomas Hauth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: