Compilation problems...

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Post Reply
Artlav
Posts: 32
Joined: Wed Dec 29, 2004 4:53 pm
Location: Moscow

Compilation problems...

Post by Artlav » Wed Dec 29, 2004 5:00 pm

Iam compiling Reactos CVS from 29.12.2004 14:45 using MinGW 3.1.0-1 + all on Reactos compile page.
It runs good until explorer, after that it give following:

[code]
../../../tools/depend.mk:25: no file name for `-include'
explorer: [CXX] explorer.cpp
In file included from precomp.h:28,
from explorer.cpp:31:
utility/utility.h:741: parse error before `{' token
utility/utility.h:750: parse error before `)' token
utility/utility.h:751: parse error before `,' token
utility/utility.h:753: parse error before `const'
utility/utility.h:754: parse error before `const'
utility/utility.h:757: parse error before `)' token
utility/utility.h:758: parse error before `,' token
utility/utility.h:759: parse error before `const'
utility/utility.h:760: `String& operator=(const CHAR*)' must be a nonstatic
member function
utility/utility.h:760: `String& operator=(const CHAR*)' must take exactly two
arguments
utility/utility.h: In function `String& operator=(const CHAR*)':
utility/utility.h:760: `assign' undeclared (first use this function)
utility/utility.h:760: (Each undeclared identifier is reported only once for
each function it appears in.)
utility/utility.h:760: invalid use of `this' in non-member function
utility/utility.h: In function `void assign(const CHAR*)':
utility/utility.h:761: `void assign(const CHAR*)' used prior to declaration
utility/utility.h:761: `super' undeclared (first use this function)
utility/utility.h:761: parse error before `::' token
utility/utility.h:761: warning: unused variable `TCHAR b[2048]'
utility/utility.h:761: `erase' undeclared (first use this function)
utility/utility.h: In function `void assign(const CHAR*, int)':
utility/utility.h:762: parse error before `::' token
utility/utility.h:762: warning: unused variable `TCHAR b[2048]'
utility/utility.h: In function `void assign(const BStr&)':
utility/utility.h:763: parse error before `::' token
utility/utility.h:763: warning: unused variable `int l'
utility/utility.h: At global scope:
utility/utility.h:773: parse error before `const'
utility/utility.h:774: `String& operator=(const BStr&)' must be a nonstatic
member function
utility/utility.h:774: `String& operator=(const BStr&)' must take exactly two
arguments
utility/utility.h: In function `String& operator=(const BStr&)':
utility/utility.h:774: invalid use of `this' in non-member function
utility/utility.h: At global scope:
utility/utility.h:776: `String& operator=(const TCHAR*)' must be a nonstatic
member function
utility/utility.h:776: `String& operator=(const TCHAR*)' must take exactly two
arguments
utility/utility.h: In function `String& operator=(const TCHAR*)':
utility/utility.h:776: parse error before `::' token
utility/utility.h:776: invalid use of `this' in non-member function
utility/utility.h: At global scope:
utility/utility.h:777: parse error before `&' token
utility/utility.h:777: `String& operator=(...)' must be a nonstatic member
function
utility/utility.h:777: `String& operator=(...)' must take exactly two arguments
utility/utility.h: In function `String& operator=(...)':
utility/utility.h:777: parse error before `::' token
utility/utility.h:777: invalid use of `this' in non-member function
utility/utility.h: In function `void assign(const TCHAR*)':
utility/utility.h:778: parse error before `::' token
utility/utility.h: In function `void assign(const TCHAR*, int)':
utility/utility.h:779: parse error before `::' token
utility/utility.h: At global scope:
utility/utility.h:781: non-member function `operator const TCHAR*()' cannot
have `const' method qualifier
utility/utility.h:781: `operator const TCHAR*()' must be a nonstatic member
function
utility/utility.h:781: `operator const TCHAR*()' must take exactly one argument
utility/utility.h: In function `operator const TCHAR*()':
utility/utility.h:781: `c_str' undeclared (first use this function)
utility/utility.h: At global scope:
utility/utility.h:784: non-member function `operator std::string()' cannot have

`const' method qualifier
utility/utility.h:784: `operator std::string()' must be a nonstatic member
function
utility/utility.h:784: `operator std::string()' must take exactly one argument
utility/utility.h: In function `String& printf(const TCHAR*, ...)':
utility/utility.h:795: parse error before `::' token
utility/utility.h:798: invalid use of `this' in non-member function
utility/utility.h:792: warning: unused variable `TCHAR b[2048]'
utility/utility.h: In function `String& vprintf(const TCHAR*, char*)':
utility/utility.h:805: parse error before `::' token
utility/utility.h:807: invalid use of `this' in non-member function
utility/utility.h:803: warning: unused variable `TCHAR b[2048]'
utility/utility.h: In function `String& appendf(const TCHAR*, ...)':
utility/utility.h:816: parse error before `::' token
utility/utility.h:819: invalid use of `this' in non-member function
utility/utility.h:813: warning: unused variable `TCHAR b[2048]'
utility/utility.h: In function `String& vappendf(const TCHAR*, char*)':
utility/utility.h:826: parse error before `::' token
utility/utility.h:828: invalid use of `this' in non-member function
utility/utility.h:824: warning: unused variable `TCHAR b[2048]'
utility/utility.h: At global scope:
utility/utility.h:830: parse error before `}' token
utility/utility.h:836: base class `String' has incomplete type
utility/utility.h:1007: field `_obj' has incomplete type
utility/utility.h: In constructor `Context::Context(const char*, const CHAR*)':
utility/utility.h:974: class `Context' does not have any field named `_obj'
utility/utility.h: In constructor `Context::Context(const char*, const
WCHAR*)':
utility/utility.h:982: class `Context' does not have any field named `_obj'
utility/utility.h: In copy constructor `Context::Context(const Context&)':
utility/utility.h:990: `struct Context' has no member named `_obj'
utility/utility.h:990: class `Context' does not have any field named `_obj'
[/code]

and so on...
utility.h seems ok, but iam not an expert in hardcore C...
How can i fix it? Or, better, what's wrong?

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG » Wed Dec 29, 2004 6:41 pm

I bet you're using an older GCC version. What does "g++ --version" say?

Artlav
Posts: 32
Joined: Wed Dec 29, 2004 4:53 pm
Location: Moscow

Post by Artlav » Wed Dec 29, 2004 6:48 pm

g++ (GCC) 3.2.3 (mingw special 20030504-1)

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG » Wed Dec 29, 2004 10:41 pm

Artlav wrote:g++ (GCC) 3.2.3 (mingw special 20030504-1)
That's the problem then. You need at least 3.3.1. What page are you refering to, this says you need 3.3.1

Artlav
Posts: 32
Joined: Wed Dec 29, 2004 4:53 pm
Location: Moscow

Post by Artlav » Thu Dec 30, 2004 8:38 am

Yes, Ive downloaded, but fogot to install it!
Sorry for false problem...

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG » Thu Dec 30, 2004 11:00 am

Glad it works.

Post Reply

Who is online

Users browsing this forum: DotBot [Crawler] and 23 guests