Nemo
Nemo

Reputation: 4721

CodeBlocks: How to run after building from custom Makefile

I have set up CodeBlocks to build from a custom Makefile. Build is working fine, but I am not able to run the code from CodeBlocks.

To build the project in command prompt, I use simple commands make and to clean it is make clean. It generates the executable: main that I run by ./main

I am trying to map this to the settings available in codeblocks which has the following values.

How can I do the mapping and how to run the project?

Upvotes: 3

Views: 3738

Answers (1)

lkanab
lkanab

Reputation: 954

Using makefile in codeblocks changes the build process only.

The run command is executed according to the Target's output filename.

Go to project [menu] -> properties -> Build Targets [tab]

Set Output Filename to ./main

Upvotes: 2

Related Questions