Author Topic: prefix.cpp in Codeblocks.cbp (C::B project file for Windows)  (Read 6873 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
prefix.cpp in Codeblocks.cbp (C::B project file for Windows)
« on: April 16, 2013, 04:16:22 am »
This file is used in Codeblocks-unix.cbp, but not Codeblocks.cbp.

In Codeblocks.cbp, it has such snippet:
Code
		<Unit filename="src/prefix.cpp">
<Option compile="0" />
<Option link="0" />
<Option target="src" />
</Unit>
I see this file in Project Manager browser tree are in "grey" color. Do we need to remove it, or what's reason to keep it in Codeblocks.cbp?

EDIT:
I see all the header files were in "grey" color, see the screen shot below:
« Last Edit: April 16, 2013, 04:18:40 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: prefix.cpp in Codeblocks.cbp (C::B project file for Windows)
« Reply #1 on: April 16, 2013, 04:24:32 am »
I see all the header files were in "grey" color, see the screen shot below:
If a file is marked to be compiled, it is black, else grey.  (Look at sdk.h, it is black.)

Should prefix.cpp be removed?  Probably (I do not believe it is being used currently), but someone else should respond to this.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: prefix.cpp in Codeblocks.cbp (C::B project file for Windows)
« Reply #2 on: April 16, 2013, 07:46:34 am »
Do we need to remove it, or what's reason to keep it in Codeblocks.cbp?
I put it there like that so that we can easily synchronise the Unix with the windows project file. I would welcome keeping it that way.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ