Author Topic: Multiple files  (Read 2365 times)

Offline kinddavid

  • Single posting newcomer
  • *
  • Posts: 6
Multiple files
« on: July 29, 2015, 07:07:22 am »
Hope to you make .h and .cpp files besides the main.cpp in Code Blocks?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11726
    • Travis build status
Re: Multiple files
« Reply #1 on: July 29, 2015, 09:51:24 am »
What? Project?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9490
Re: Multiple files
« Reply #2 on: July 29, 2015, 10:55:12 am »
Hope to you make .h and .cpp files besides the main.cpp in Code Blocks?
What? Project?
...I don't even understand the question to be honest.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline kinddavid

  • Single posting newcomer
  • *
  • Posts: 6
Re: Multiple files
« Reply #3 on: July 31, 2015, 09:46:54 am »
When I create a project I have one .cpp . How do I add another or add a .h?

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Multiple files
« Reply #4 on: July 31, 2015, 10:48:14 am »
menu 'project->add files'?

Offline kinddavid

  • Single posting newcomer
  • *
  • Posts: 6
Re: Multiple files
« Reply #5 on: August 01, 2015, 06:39:21 am »
Thanks for responding. I am not talking about adding preexisting files. I need a blank .h file. I tried the project->add files. It wants me to add a preexisting file. I know this is a very basic problem, but I am literally not finding how to do this.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11726
    • Travis build status
Re: Multiple files
« Reply #6 on: August 01, 2015, 08:28:23 am »
File -> New -> Empty file
File -> New -> File...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline marcelinux

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Multiple files
« Reply #7 on: August 01, 2015, 02:22:32 pm »
If you have a .cpp file, by pressing F11, C::B switch to .h file or ask you for create one.
I just need learn a little bit more. Thank you for your help.

Offline papagym

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Multiple files
« Reply #8 on: September 11, 2015, 09:25:52 pm »
I'm not sure if this will help you with multiple files or not.  Your post is not very specific.  But there is a site that has great C++ tutorials on the internet.  It is called Learning C++.  You can search the lesson index there and open the lesson for Multi-files.  This site has is geared toward MSVS users but there in also info on using Code::Blocks there too.

If you don't understand the lesson you can find load of questions and answer by scrolling thru the comments at the end of each lesson.