Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
FreeBSD and autorevision
sethjackson:
Ok so C::B started compiling on FreeBSD, but I have some problems with autorevision which prevents me from compiling C::B.
See here.
--- Code: ---In file included from configmanager-revision.cpp:13:
autorevision.h:14: error: `encoding' was not declared in this scope
autorevision.h:14: error: expected primary-expression before '>' token
autorevision.h:14: error: expected primary-expression before ';' token
autorevision.h:14: error: expected `:' before ';' token
autorevision.h:14: error: expected primary-expression before ';' token
autorevision.h:15: error: expected `)' before "utf"
configmanager-revision.cpp: In static member function `static wxString ConfigManager::GetRevisionString()':
configmanager-revision.cpp:17: error: expected primary-expression before '(' token
configmanager-revision.cpp:17: error: expected `)' before "utf"
--- End code ---
Here is autorevision.h
--- Code: ---/*encoding="utf-8"?>*/
#ifndef AUTOREVISION_H
#define AUTOREVISION_H
#include <wx/string.h>
#define SVN_REVISION "encoding="utf-8"?>"
#define SVN_DATE "<entry"
namespace autorevision
{
const unsigned int svn_revision = encoding="utf-8"?>;
const wxString svnRevision(_T("encoding="utf-8"?>"));
}
#endif
--- End code ---
Anyone have this problem? Afb?
Biplab:
I confirm this problem.
I tried to compile code downloaded from svn. I faced the similar errors. Later I cleaned few times and restarted the build and it got compiled. I think it was svn 3291. :? Though the problem got solved but I'm not sure how it got solved!!
I was compiling Code::Blocks on Windows XP SP2, GCC 3.4.5 (MinGW Build).
afb:
I compiled Code::Blocks on FreeBSD by disabling autorevision in the Makefiles.
It just has the same problems that it has on all other platforms, so it'll be fixed...
sethjackson:
Ok I don't know how to do that though. LOL
afb:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=1604&group_id=5358
I have a better patch in the works, that uses autotools to generate autorevision.h
It will also fix the "revision is always zero when I compile from a tarball" problem.
Navigation
[0] Message Index
[#] Next page
Go to full version