Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Need help from C/C++ experts with VS on Windows

Need help from C/C++ experts with VS on Windows

Scheduled Pinned Locked Moved Solved C++ Gurus
4 Posts 2 Posters 419 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JoeCFD
    wrote on 22 Jan 2025, 04:55 last edited by
    #1

    Finished building a very old C/C++ project with VS on Windows. The project was made to run with a shell script which is not supported on Windows terminal. I managed to launch it on git bash on Windows. But it crashes. I found out the crash location which turns out to have no errors there. I believe some corrupt memory issues cause the crash. I turned on sanitizer in debug build and try to detect the memory issue. When debug build is run, it looks for asan libs. I set the lib path of asan with

    export LIB="$LIB:/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/lib/x64"
    

    Still got error: while loading shared libraries: clang_rt.asan_dynamic-x86_64.dll
    How to set the lib path correctly?

    C 1 Reply Last reply 22 Jan 2025, 05:15
    0
    • J JoeCFD
      22 Jan 2025, 04:55

      Finished building a very old C/C++ project with VS on Windows. The project was made to run with a shell script which is not supported on Windows terminal. I managed to launch it on git bash on Windows. But it crashes. I found out the crash location which turns out to have no errors there. I believe some corrupt memory issues cause the crash. I turned on sanitizer in debug build and try to detect the memory issue. When debug build is run, it looks for asan libs. I set the lib path of asan with

      export LIB="$LIB:/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/lib/x64"
      

      Still got error: while loading shared libraries: clang_rt.asan_dynamic-x86_64.dll
      How to set the lib path correctly?

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 22 Jan 2025, 05:15 last edited by
      #2

      @JoeCFD said in Need help from C/C++ experts with VS on Windows:

      I set the lib path of asan with

      You have to set the PATH env var. There is nothing like a 'LIB' env var on windows to search fpr shared libraries.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      J 1 Reply Last reply 22 Jan 2025, 12:34
      1
      • C Christian Ehrlicher
        22 Jan 2025, 05:15

        @JoeCFD said in Need help from C/C++ experts with VS on Windows:

        I set the lib path of asan with

        You have to set the PATH env var. There is nothing like a 'LIB' env var on windows to search fpr shared libraries.

        J Offline
        J Offline
        JoeCFD
        wrote on 22 Jan 2025, 12:34 last edited by
        #3

        @Christian-Ehrlicher Thanks for your help, Christian. Will try it.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JoeCFD
          wrote on 22 Jan 2025, 21:52 last edited by
          #4

          Works. Thank Christian again.

          1 Reply Last reply
          0
          • J JoeCFD has marked this topic as solved on 22 Jan 2025, 21:52

          1/4

          22 Jan 2025, 04:55

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved