User forums > Help

PCH in object output dir (possible bug?)

(1/3) > >>

starkos:
New to C::B, and I'm not sure if this is a bug of if I am just using it wrong.

I set up my first CB project and it is building fine. I wanted to get the precompiled headers out of the source code directory, so I changed the project settings to "Generate PCH in the object output dir". When I rebuild, CB can no longer find my header files ("No such file or directory"). I was able to work around it by adding each directory that contains header files to the Compiler Directories on the build options dialog. Should this really be necessary?

FYI, I am trying to add support for C::B to Premake, a build script generation tool (http://premake.sourceforge.net/). The idea is to write a script that describes your project, and then use Premake to generate the actual project files for your toolset. I already have support for Visual Studio 6-2005 and GNU makefiles -- CB support would be a nice addition. I need to put the PCH files in the obj dir to keep the behavior consistent across all of the different tools I support.

Thanks for the help,
Jason

mandrav:
Can you post a minimal sample project demonstrating what you 're describing?

starkos:
Sure, here are the Premake sources with a C::B workspace. I've configured the project to show the error (PCH are set to obj dir, source code directories are not listed in Compiler Directories).

FWIW, I'm trying to build it with the 8/29 nightly snapshot.

Thanks for the help,
Jason


[attachment deleted by admin]

tiwag:
why don't you want to add simply "Lua" to the compiler directories ?

i can't find any bug related to PCH  :?

[attachment deleted by admin]

mandrav:
Either you have some misunderstanding of what is a precompiled header (PCH), or you failed to communicate your real problem to me.

The project you attached does *not* use precompiled headers.
Yes, it fails to build but because you haven't setup the compiler's include directories. This has nothing to do with PCH.

Please read this wiki article. If we are still talking about the same thing, please describe your problem with more details so I can understand what it is.

Navigation

[0] Message Index

[#] Next page

Go to full version