Code::Blocks Forums

User forums => Help => Topic started by: Ryu on October 17, 2006, 08:57:03 pm

Title: Compilation Problem
Post by: Ryu on October 17, 2006, 08:57:03 pm
Hi everybody.

I'm trying compiling C::B R3099 and i get the followong message.

In file included from configmanager-revision.cpp:13:
autorevision.h:14: error: `encoding' was not declared in this scope
autorevision.h:14: error: syntax error before `>' token

what i do whit this?

i'm working in linux.  :lol:
Title: Re: Compilation Problem
Post by: byo on October 17, 2006, 09:09:20 pm
Try compiling once aqain. or recompile autorevision (in src/build_tools/autorevision) first. I just compiled again it and it worked fine.
Title: Re: Compilation Problem
Post by: Ryu on October 17, 2006, 09:51:49 pm
Thanks by the advice byo, but don't work; this very extrange because
i have the revision 2982 and it compiled fine so, what do you change?
because the error say that it is a problem of a variable not declared.
Title: Re: Compilation Problem
Post by: byo on October 17, 2006, 10:24:56 pm
the real problem is that autorevision.h file is automatically generated by autotools at the beginning of compilation and it's generated from some files inside .svn directory. In my case, invalid autorevision.h was created because I've updated svn client and it updated files in .svn dir and autorevision was unable to parse new files correctly. What version of svn do you use?
Title: Re: Compilation Problem
Post by: Ryu on October 17, 2006, 10:28:33 pm
First at all, thanks Byo.
Now, the version of svn is 1.2.3 r15833
Title: Re: Compilation Problem
Post by: MortenMacFly on October 17, 2006, 10:33:57 pm
First at all, thanks Byo.
Now, the version of svn is 1.2.3 r15833
Hehe... I had this issue, too. I resolved it by making a downgrade of "autorevision" (but only this) to *before* revision 3004. Of course you could also upgrade svn to 1.4.0 (which is the easier choice) but if you can't (like I do) this would be another option. BTW: Thomas is the one to ask in this case... ;-)
With regards, Morten.
Title: Re: Compilation Problem
Post by: Ryu on October 17, 2006, 11:21:06 pm
Very much thanks MortenMacFly your advice was correct
now i have svn 1.4.0 21228 and it fixed the problem.
thanks!! :D