|
-
April 22nd, 2009, 01:16 PM
#1
Code::Blocks question
Is there a way to group files together instead of having it use Source and Headers? My current project is 200 files and it would be nice if I could put them inside of groups like in Dev-C++ or XCode. Is there a setting that I'm missing?
-
April 22nd, 2009, 01:40 PM
#2
Re: Code::Blocks question
Just have each source file include all the other source files it requires to function, then use #ifndef to make sure it's only included once
Intel Core Duo Macbook w/ Mac OS 10.5.6
gcc 4.2.1 (i386-apple-darwin9.1.0) and Xcode 3.1.1
-
April 22nd, 2009, 01:56 PM
#3
Re: Code::Blocks question
 Originally Posted by ninja9578
Is there a way to group files together instead of having it use Source and Headers? My current project is 200 files and it would be nice if I could put them inside of groups like in Dev-C++ or XCode. Is there a setting that I'm missing?
You could try "Add new virtual folder" from the context menu.
-
April 22nd, 2009, 02:27 PM
#4
Re: Code::Blocks question
 Originally Posted by laserlight
You could try "Add new virtual folder" from the context menu.
Ah, it didn't click what a virtual folder was.
 Originally Posted by Etherous
Just have each source file include all the other source files it requires to function, then use #ifndef to make sure it's only included once
Huh?
-
April 23rd, 2009, 03:10 PM
#5
Re: Code::Blocks question
square.h:
Code:
#ifndef SQUARE
#define SQUARE
#include "shape2d.h"
class Square : public Shape2d
{
...
};
#endif // SQUARE
cube.h:
Code:
#ifndef CUBE
#define CUBE
#include "square.h"
#include "shape3d.h"
class Cube : public Square, public Shape3d
{
...
};
#endif // CUBE
Last edited by Etherous; April 23rd, 2009 at 03:13 PM.
Intel Core Duo Macbook w/ Mac OS 10.5.6
gcc 4.2.1 (i386-apple-darwin9.1.0) and Xcode 3.1.1
-
April 23rd, 2009, 03:25 PM
#6
Re: Code::Blocks question
I'm still confused by what you're showing me, those are classes, they have nothing to do with file groups :?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|