Author Topic: Compilation Problem  (Read 2868 times)

Offline Ryu

  • Multiple posting newcomer
  • *
  • Posts: 16
Compilation Problem
« 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:

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Compilation Problem
« Reply #1 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.

Offline Ryu

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Compilation Problem
« Reply #2 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.

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Compilation Problem
« Reply #3 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?

Offline Ryu

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Compilation Problem
« Reply #4 on: October 17, 2006, 10:28:33 pm »
First at all, thanks Byo.
Now, the version of svn is 1.2.3 r15833

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: Compilation Problem
« Reply #5 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Ryu

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Compilation Problem
« Reply #6 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