Skip to content

system “Path” variable

Problem

If essential paths for running SplashKit commands are missing from the system “Path” variable, you may encounter errors when attempting to run or compile projects. Updating the Path variable to include these paths will allow Windows to locate the necessary files.

Solution

Follow these steps to update your system “Path” variable:

  1. Open Environment Variables Settings

    Use the taskbar search bar to type “environment variables.”

    Select the matching result, as shown below.

    Environment Variables Search

  2. Access the Environment Variables Menu

    In the “System Properties” window, go to the Advanced tab (red box) and click Environment Variables (green box).

    System Properties

  3. Select the Path Variable for Editing

    In the Environment Variables window, locate the Path variable (red box) and select it, then click Edit (green box).

    Edit Path Variable

    Tip: To find your username for the paths in the next steps, open File Explorer or type whoami in the terminal to confirm your username.

    Finding Username

  4. Add Required Paths for SplashKit

    In the “Edit Environment Variable” window, add the necessary paths by clicking New and entering each path. Replace “your_username” with your actual username.

    Add Paths

    Once the paths are added, click OK on all open windows to save your changes.

  5. Verify the Update

    Open a new MINGW64 terminal and run your program to confirm the paths have been correctly set and that SplashKit functions as expected.

Following these steps should resolve any issues related to the system “Path” variable and ensure SplashKit commands run smoothly on Windows.