User forums > Using Code::Blocks

Build file

(1/2) > >>

Calexus:
In the manager window/tab whatever it's called if you right click a file in the file tree you can "Build file". As I'm remembering it this is supposed to build only that file, right? i never use it, but thats how I'm remembering it was made for. Anyways I does not work in osx snow leopard. Only thing that appears to be happening is  the following output in the Build Log:  make: *** empty string invalid as file name.  Stop.

I don't have access to a windows/linux machine at my office at the moment so I cant say if it woks under those systems.

C::B rev. 7456 built in late September so I guess this might be kind of old news.

zabzonk:
Does it work if the file has been changed? If the build system thinks it is up-to-date, it won't build it - a bit of a misfeature, IMHO.

Calexus:
No no difference if the file has been changed.

oBFusCATed:
Is this a Makefile project or normal project?
Because here it works for normal projects.
If you're using Makefile your make file should support compiling single files and I guess your doesn't.

Enable full logging to see what is the actual command executed.

Calexus:
Enabling full logging didn't do anything but I think you are right. This is a custom makfile generated by cmake and even though my cmake is pretty weak it doesn't appear to  contain a "single file" target. Thanks a bunch! I would probably never have thought about that myself, at least not this week :/

Guess I have to track down who ever wrote this cmake mess, or maybe it's a great opportunity to learn some cmake...

Thanks for the help.

Navigation

[0] Message Index

[#] Next page

Go to full version