Skip to content
Sign UpLog In
Profile icon

BlueWhispers

@BlueWhispers
Repls
Community
BlueWhispers
BlueWhispers
shared a Post
1 year ago
How to change how c++ is executed (also makefiles ?)
Hi ! I have the following architecture : sources |main.cpp |other.cpp headers |other.hpp When I run I have the following error : unable to run, main
19ecal
19ecal
You can create a makefile. Write your makefile (I presume you know how to do that), then your project will look something like this . ├── headers │   └── other.hpp ├── makefile └── sources ├── main.cpp └── other.cpp Then make a file called .replit in the root of your project In it put the following lines: run = "make && ./path/to/executable" Then every time you hit the run button the commands in .replit (i.e make && ./path/to/executable) will be run. Alternatively you could put in your .1 year ago