0

This is IITB simplecpp i am trying to run the program but it shows the following issue..if anyone an help with it i'm new to this.

Some programmer dude
  • 400,186
  • 35
  • 402
  • 621
  • you miss . in your include, put simple.cpp – Tomáš Šturm Feb 04 '22 at 08:36
  • Don't forget the space either: `#include `, generally `<` and `>` are reserved for libraries and `"` are used for your own files so `#include "simple.cpp"` is likely what you are looking for. Finally, `.cpp` files aren't included, so you likely meant `#include "simple.hpp"` – Brandon Feb 04 '22 at 08:38
  • First of all, you seem to have some project problems. Secondly, who told you to `#include `? What is this `simplecpp`? Where is the file `simplecpp` located? – Some programmer dude Feb 04 '22 at 08:38
  • And *don't* include source files (files ending in e.g. `.cpp`). Please invest in [some good C++ books](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list/388282#388282) and learn the difference between *header* files (which you include) and *source* files (which you build). – Some programmer dude Feb 04 '22 at 08:40
  • https://cplusplus.com/doc/tutorial/program_structure/ – Brandon Feb 04 '22 at 08:41
  • @Brandon The library's header is actually called "simplecpp". The name is not the problem. – molbdnilo Feb 04 '22 at 09:03
  • @Someprogrammerdude The library's header is actually called "simplecpp". The name is not the problem. – molbdnilo Feb 04 '22 at 09:04
  • There is a problem with your library installation or your IDE configuration. Which version did you install? – molbdnilo Feb 04 '22 at 09:06
  • I would be more concerned about the first line: `=== Build file: "no target" in "no project" (compiler: unknown) ===` and start by sorting that out - like having a known compiler build an executable. – BoP Feb 04 '22 at 10:07
  • Have to told Code::Blocks where to find the library? – Brandon Feb 04 '22 at 10:11

0 Answers0