Author Topic: how to direct CB to the include items.  (Read 2319 times)

Offline John Voelkel

  • Multiple posting newcomer
  • *
  • Posts: 10
how to direct CB to the include items.
« on: January 19, 2017, 01:41:15 am »
When I try to compile I get an error at #include.  Some files that at an earlier time when CB was working run but submitting a new file and trying to compile it I get the error at #include <iostream>
I think the location of include is not being found by CB
Please advise, thanks for the help. I am 84 and a bit slow

John

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: how to direct CB to the include items.
« Reply #1 on: January 19, 2017, 02:02:21 am »
Make sure the filename ends in .cpp

If you still have problems post a build log.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline John Voelkel

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: how to direct CB to the include items.
« Reply #2 on: January 19, 2017, 02:13:27 am »
Thanks Tim I thought I made sure of this.  I just wrote a small file and it compiled and ran
correctly.