Author Topic: Compile Multiple C++ Source Files  (Read 3203 times)

Offline robert1234

  • Single posting newcomer
  • *
  • Posts: 1
Compile Multiple C++ Source Files
« on: October 16, 2021, 11:27:30 pm »
I have a series of C++ source files that I made on the command line with vim, and they compile and run fine with make and a Makefile, but when I try to open them up in Code::Blocks and compile and run, it says
-------------- Build file: "no target" in "no project" (compiler: unknown)---------------
I believe I have the compiler set to g++ and -std=c++11.
Can someone help me?

Offline cacb

  • Lives here!
  • ****
  • Posts: 514
Re: Compile Multiple C++ Source Files
« Reply #1 on: October 17, 2021, 08:11:20 am »
You need to create a project in Code::Blocks and include one or more source files in it.
A project has build targets, typically for debug and release