Author Topic: Compile Error, Ios_base Undeclared  (Read 6465 times)

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Compile Error, Ios_base Undeclared
« on: March 24, 2007, 05:53:15 am »
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?

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Compile Error, Ios_base Undeclared
« Reply #1 on: March 24, 2007, 05:58:01 am »
Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157100\"][{POST_SNAPBACK}][/a][/div]

use a newer compiler that supports c++ templates better...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Compile Error, Ios_base Undeclared
« Reply #2 on: March 24, 2007, 07:42:27 am »
Is that possible when compiling for the sharp rom?  

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Compile Error, Ios_base Undeclared
« Reply #3 on: March 24, 2007, 10:07:15 pm »
Quote
Is that possible when compiling for the sharp rom? 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157104\"][{POST_SNAPBACK}][/a][/div]

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
« Last Edit: March 24, 2007, 10:09:19 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K