User forums > General (but related to Code::Blocks)

Support for adding custom files to the build system

(1/3) > >>

mandrav:
Efforts have been made last week to add a way for the build system to support custom, non-C/C++ files. And the fruits of our labor can finally see the light of day :).

This feature has just been committed so you either have to update your working copy and compile (if using sources) or wait for the next nightly (if using binaries).

Still, everyone can read some basic info on this and how it works already by reading the relevant wiki article: Adding support for non C/C++ files to the build system.

Hopefully this should make your life easier when working on projects that will benefit from this functionality :).

XayC:
Seems that a change you made in src/include/compiler.h broke building. Revision 4485

--- Code: ---CompilerBuildMethod buildMethod; // cbmDirect

--- End code ---
This line has been removed, but in the file: plugins/compilergcc/compilerBCC.cpp buildMethod it's still required.

Regards, XayC

mandrav:

--- Quote from: XayC on September 22, 2007, 03:31:00 pm ---Seems that a change you made in /src/include/compiler.h broke building.

--- Code: ---CompilerBuildMethod buildMethod; // cbmDirect

--- End code ---
This line has been removed, but in the file: plugins/compilergcc/compilerBCC.cpp buildMethod it's still required.

Regards, XayC

--- End quote ---




--- Code: ---mandrav@amd64:~/codeblocks/trunk$ find . -name "*.cpp" | xargs grep CompilerBuildMethod
mandrav@amd64:~/codeblocks/trunk$

--- End code ---

I guess you should update your copy and make sure you haven't modified any files yourself.

XayC:
I guess of course you compiled Code::Blocks before submitting changes to the svn so it may look very strange that it's not compiling, but my updated working dir is not.

To make sure it's not a problem on my machine, I did this directly on the websvn (revision 4485):

The error when i try to compile:

--- Code: ---src\plugins\compilergcc\compilerBCC.cpp:47: error: 'struct CompilerSwitches' has no member named 'buildMethod'

--- End code ---


* Tried to find where 'struct CompilerSwitches' is declared. Found here: trunk/src/include/compiler.h (line 156)
* See that member 'buildMethod' is not defined there, but it was before, in revision 4266
* The member 'buildMethod' is actually accessed in the file (to make sure i did not change my copy), here: trunk/src/plugins/compilergcc/compilerBCC.cpp
Regards, Xayc

Biplab:
Please download revision 4486. I've fixed the errors. Mandrav missed them as they were not compiled on Linux and thus he didn't receive any errors.

Navigation

[0] Message Index

[#] Next page

Go to full version