OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Compile Error, Ios_base Undeclared
matthis
post Mar 24 2007, 01:53 AM
Post #1





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Hi, I'm trying to compile the latest Wesnoth for sharp/cacko rom.
I'm the following error:

filesystem.cpp: In function `class istream * istream_file(const string &)':
filesystem.cpp:521: `::ios_base' undeclared (first use here)
filesystem.cpp:521: parse error before `::'
filesystem.cpp:531: parse error before `::'
filesystem.cpp: In function `class ostream * ostream_file(const string &)':
filesystem.cpp:546: parse error before `::'
filesystem.cpp:547: warning: control reaches end of non-void function `ostream_file(const string &)'
filesystem.cpp: In function `bool file_exists(const string &)':
filesystem.cpp:635: parse error before `::'
filesystem.cpp:636: request for member `rdstate' in `file', which is of non-aggregate type `ifstream ()(...)'
filesystem.cpp:638: request for member `close' in `file', which is of non-aggregate type `ifstream ()(...)'
make[2]: *** [filesystem.o] Error 1

What should I do?
Go to the top of the page
 
+Quote Post
Meanie
post Mar 24 2007, 01:58 AM
Post #2





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(matthis @ Mar 24 2007, 07:53 PM)
Hi, I'm trying to compile the latest Wesnoth for sharp/cacko rom.
I'm the following error:

filesystem.cpp: In function `class istream * istream_file(const string &)':
filesystem.cpp:521: `::ios_base' undeclared (first use here)
filesystem.cpp:521: parse error before `::'
filesystem.cpp:531: parse error before `::'
filesystem.cpp: In function `class ostream * ostream_file(const string &)':
filesystem.cpp:546: parse error before `::'
filesystem.cpp:547: warning: control reaches end of non-void function `ostream_file(const string &)'
filesystem.cpp: In function `bool file_exists(const string &)':
filesystem.cpp:635: parse error before `::'
filesystem.cpp:636: request for member `rdstate' in `file', which is of non-aggregate type `ifstream ()(...)'
filesystem.cpp:638: request for member `close' in `file', which is of non-aggregate type `ifstream ()(...)'
make[2]: *** [filesystem.o] Error 1

What should I do?
*


use a newer compiler that supports c++ templates better...
Go to the top of the page
 
+Quote Post
matthis
post Mar 24 2007, 03:42 AM
Post #3





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Is that possible when compiling for the sharp rom? ohmy.gif
Go to the top of the page
 
+Quote Post
Meanie
post Mar 24 2007, 06:07 PM
Post #4





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(matthis @ Mar 24 2007, 09:42 PM)
Is that possible when compiling for the sharp rom?  ohmy.gif
*


yes, but only if you are not linking qte libraries... i had a modified pdaXrom cross compiler (gcc 3.4.5) that I used to compile X/QT apps with until that box died sad.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th July 2014 - 03:17 PM