473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problems compiling STLPORT 4.5.3 with g++ 3.3

I am trying to compile the STLPORT 4.5.3 using g++ 3.3 compiler on sun. I
have modified the stl_gcc.h file to point to the correct include path for
the compiler.
I am getting the following errors:
In file included from /opt/nortel/gcc-3.3/backward/iostream.h:31,
from /export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:5,
from /export/home/rch034/garyla/stlport/iostream.h:107,
from /export/home/rch034/garyla/stlport/wrap_std/iosfwd:64,
from /export/home/rch034/garyla/stlport/iosfwd:45,
from /export/home/rch034/garyla/stlport/stl/_string_fwd.h:23,
from /export/home/rch034/garyla/stlport/stl/_string.h:31,
from /export/home/rch034/garyla/stlport/string:42,
from MmapAlloc.h:156,
from MmapAlloc.C:2:
/opt/nortel/gcc-include/c++/3.3/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
In file included from
/export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:10,
from /export/home/rch034/garyla/stlport/wrap_std/iostream:30,
from /export/home/rch034/garyla/stlport/iostream:80,
from /opt/nortel/gcc-3.3/include/c++/3.3/backward/iostream.h:32,
from /export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:5,
from /export/home/rch034/garyla/stlport/iostream.h:107, from
/export/home/rch034/garyla/stlport/wrap_std/iosfwd:64,
from /export/home/rch034/garyla/stlport/iosfwd:45,
from /export/home/rch034/garyla/stlport/stl/_string_fwd.h:23, from
/export/home/rch034/garyla/stlport/stl/_string.h:31,
from /export/home/rch034/garyla/stlport/string:42,
from MmapAlloc.h:156,
from MmapAlloc.C:2:
/export/home/rch034/garyla/stlport/using/h/iostream.h:1: error: `istream'
not declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:2: error: `ostream'
notdeclared
/export/home/rch034/garyla/stlport/using/h/iostream.h:6: error: `cin' not
declared
/export/home/rch034/garyla/stlport/using/h/iostream.h: error: `cout' not
declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:12: error: `cerr'
not declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:15: error: `clog'
not declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:18: error: `endl'
not declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:19: error: `ends'
not declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:21: error: `ios' not
declared
/export/home/rch034/garyla/stlport/using/h/iostream.h:22: error: `flush'
not declared

I am not sure how to get fix these errors. I have tried setting the
following defines in the stl_gcc.h file:
//# define _STLP_USE_NEW_IOSTREAMS
//# define _STLP_OWN_IOSTREAMS
//# define _STLP_USE_NO_IOSTREAMS

Setting any one of these flags leads to loads of errors in the
stlport/stl/_string.h file.

I am new to STL and I am trying to port some code to use the g++ compiler
on Sun. I have to use STLPORT 4.5.3 and g++ 3.3. Any help of how to get
around these errors would be greatly appreciated. This code was originally
built on AIX with the IBM C++ compiler and STLPORT 4.5.3.

Jul 19 '05 #1
1 3242
Gary wrote:

This is the relevant part of the compiler warning:
/opt/nortel/gcc-include/c++/3.3/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.


You include the header iostream.h in one of your files which
officially doesnt exist any more. Probably the errors you
get are caused by this header too.

Simply change the #include to:

#include <iostream> // No .h
using namespace std;

The functions are now in the namespace std, so you have to
add the second line too. Its not the very best policy(its
the lazy way of doing it) to make the whole namespace
available and I recommend that you make the functions you
need individually known.

hope this helps,

Christoph

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Icosahedron | last post by:
I'm sure it's been done. I'm sure that I'm an idiot for even asking the question, but has anyone been successful in getting Comeau 4.3.0.1 to compile STLPort, or even use STLPort in a program...
3
by: Jeremy Lemaire | last post by:
Hello, I am working on cross platform code that is displaying a huge memory leak when compiled on 11.00 HPUX using the aCC -AA flag. It is not leaking on NT, LINUX, Solaris, or HPUX without the...
4
by: jhonyxxx | last post by:
I have the next programa in C++: #include <iostream.h> // C++ I/O routines #include <list.h> // The STL list class #include<stdio.h> #include <string.h> typedef struct { char nombre; int...
3
by: | last post by:
hi to everybody I am trying to compile the stls 4.6.x with vc6. you know me to say that procedure I owe to use for completing the compilation? Best wise
0
by: Shashikiran Prabhakar via .NET 247 | last post by:
(Type your message here) Hi, I am not very conversent in VC++, but the requirement for me is to run a rendering code. However i am encountering the following errors. c:\Program...
7
by: Gernot Frisch | last post by:
Hi, we have to use stlport here, but With a code like this: void DoSomething(int english_version) { // make no use of english_version }
1
by: PangFromChina | last post by:
Platform:window 2000 professional, VC++6.0 +SP5 STLport: STLport 5.0.2 While test STLport following "STLport README for Microsoft Visual C++ compilers." of README.msvc(readme.txt), there is a...
2
by: Artur Bac | last post by:
I got a problem with eVc4 i STLPort and i dont known why c:\stlport-5.0.2\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'struct...
0
by: francois.cppdevs | last post by:
Hi C++ supporters I just wanted to let you know that STLport 5.1.0 has been released, it is available here: https://sourceforge.net/projects/stlport/ Since 5.0 this library implements some...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.