Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ShureG on March 13, 2009, 05:00:24 pm

Title: Header/Source switching works one way only
Post by: ShureG on March 13, 2009, 05:00:24 pm
Hi

I am using C::B on a project with an external makefile and the directory structure in which the source files are kept separate from the header files. (The .cc source files are under lib/c++/... and the .h headers are under include/c++/... ). The weird thing is that header/source switching only seems to work one way, i.e.
when I am in lib/c++/somedir/something.cc, F11 takes me to include/c++/somedir/something.h with no problems, but the reverse does not work - C::B asks me if I want to create a source file every time I try to go from header to (existing) source. Any ideas?
Title: Re: Header/Source switching works one way only
Post by: ollydbg on March 13, 2009, 05:11:18 pm
You forget to state the os and the codeblocks version. :D.
I have not meet this problem from header file to implement file and vice versa.
Title: Re: Header/Source switching works one way only
Post by: ShureG on March 13, 2009, 05:18:47 pm
Yes, sorry about that:

OS: Ubuntu 8.04 (Hardy Heron)
C::B Version: 8.02
Title: Re: Header/Source switching works one way only
Post by: ollydbg on March 13, 2009, 05:23:15 pm
I'm using windows.
Why not try a nightly build version? :D
It has many bug fixed from 8.02
Title: Re: Header/Source switching works one way only
Post by: ShureG on March 13, 2009, 05:23:59 pm
I don't have a lot of experience with nightly builds and instructions are not clear on how to use them under Linux
Title: Re: Header/Source switching works one way only
Post by: Jenna on March 13, 2009, 05:29:15 pm
Are the header and source files both included in the project ?
Title: Re: Header/Source switching works one way only
Post by: ShureG on March 13, 2009, 05:29:45 pm
Are the header and source files both included in the project ?

Yes they are
Title: Re: Header/Source switching works one way only
Post by: Jenna on March 13, 2009, 05:36:30 pm
I don't have a lot of experience with nightly builds and instructions are not clear on how to use them under Linux

If you want to give them a try, you can use my repo (see signature for how to do this).

If you have C::B 8.02 installed from .deb-files an update should work without problems, if not you should uninstall it before.
Title: Re: Header/Source switching works one way only
Post by: ShureG on March 13, 2009, 05:47:44 pm
I don't have a lot of experience with nightly builds and instructions are not clear on how to use them under Linux

If you want to give them a try, you can use my repo (see signature for how to do this).

If you have C::B 8.02 installed from .deb-files an update should work without problems, if not you should uninstall it before.

OK, thanks, I'll give it a go