How to force makefile to run from the bin directory rather than its root directory

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • whereami

    Locate the current running executable and the current running module/library on the file system 🔎 (by gpakosz)

  • C++ only knows about the Current Working Directory and all file paths will be relative to that and not relative to the executable file (by the time your main() function is called the entire program has been loaded into memory). You need to use the OS API to get the location of the executable file. Luckily there are easy to use cross platform libraries for this such as whereami. Then you can specify the assets path relative to the executable file and it will work no matter where the program is run from as long as the directory structure is as you specify.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • I am having trouble with a relative file path. My debugger shows the proper path but the program can't open the file. Can someone help?

    1 project | /r/cpp_questions | 28 Dec 2022
  • Playing a sound using a string as a path

    1 project | /r/cpp_questions | 28 Nov 2022
  • Visual Studio - Relative Path of solutionDir

    1 project | /r/cpp_questions | 4 Nov 2022
  • How to change the working directory of my executable with compiling with g++ so that file input output works?

    1 project | /r/cpp_questions | 13 Apr 2022
  • Absolute path works but relative doesn't

    1 project | /r/cpp_questions | 14 Oct 2021