473,811 Members | 2,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

STL errors on linux platform

Hi,
I am using STL from http://www.stlport.org/download.html (ver 4.6.2)
I see hundered's of error while compilation. I have a c++ prog
which uses stl. I am providing the stlport in the include -I while
compilation, but do not know why its throwing errors...

Compiling testStl.cpp
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:
In member function `virtual _InIter std::num_get<_C harT,
_InIter>::do_ge t(_InIter, _InIter, std::ios_base&, std::_Ios_Iosta te&,
short unsigned int&) const':
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:474:
syntax error before `short'
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:
In member function `virtual _InIter std::num_get<_C harT,
_InIter>::do_ge t(_InIter, _InIter, std::ios_base&, std::_Ios_Iosta te&,
unsigned int&) const':
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:493:
syntax error before `int'
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:
In member function `_OutIter std::num_put<_C harT,
_OutIter>::_M_c onvert_float(_O utIter, std::ios_base&, _CharT, char,
_ValueT) const':
/grid/common/pkgs/gcc/v3.2.3p1/include/c++/3.2.3/bits/locale_facets.t cc:632:
syntax error before `>' token

Actually what is happening is that, my c++ prog includes iostream,
which is
picked from STLport-4.6.2/stlport/iostream

which includes # include <wrap_std/iostream>
and this is being looked in my compiler installation like
/gcc/v3.2.3p1/include/c++/3.2.3/iostream
Its not picking this from STL istelf, which probably is causing the
above
errors...

PS : I do not see these errors when i compile the same code on solaris
(forte7/8)

Regards, ~Pervinder
Jul 22 '05 #1
3 1828
"pervinder" <pe*******@gmai l.com> wrote in message
news:90******** *************** ***@posting.goo gle.com...
Hi,
I am using STL from http://www.stlport.org/download.html (ver 4.6.2)
I see hundered's of error while compilation. I have a c++ prog
which uses stl. I am providing the stlport in the include -I while
compilation, but do not know why its throwing errors... [snip list of error messages]
Actually what is happening is that, my c++ prog includes iostream,
which is
picked from STLport-4.6.2/stlport/iostream

which includes # include <wrap_std/iostream>
and this is being looked in my compiler installation like
/gcc/v3.2.3p1/include/c++/3.2.3/iostream
Its not picking this from STL istelf, which probably is causing the
above
errors...

PS : I do not see these errors when i compile the same code on solaris
(forte7/8)


We do not see your code, therefore we cannot diagnose it.

-Mike

Jul 22 '05 #2
Mike,
My main concern is that does gcc works with STL port ? Or there are some
issues. If i provide -I./stlport in the compile line, it errors and if i do
not provide -I./stlport it works...
And the error is about the header files, like my code uses stdio.h, and
compilker picks this file from ./stloport/ locations, not from the standard
locations.

Regards, ~Pervinder

"Mike Wahler" <mk******@mkwah ler.net> wrote in message news:<BH******* ********@newsre ad3.news.pas.ea rthlink.net>...
"pervinder" <pe*******@gmai l.com> wrote in message
news:90******** *************** ***@posting.goo gle.com...
Hi,
I am using STL from http://www.stlport.org/download.html (ver 4.6.2)
I see hundered's of error while compilation. I have a c++ prog
which uses stl. I am providing the stlport in the include -I while
compilation, but do not know why its throwing errors...

[snip list of error messages]
Actually what is happening is that, my c++ prog includes iostream,
which is
picked from STLport-4.6.2/stlport/iostream

which includes # include <wrap_std/iostream>
and this is being looked in my compiler installation like
/gcc/v3.2.3p1/include/c++/3.2.3/iostream
Its not picking this from STL istelf, which probably is causing the
above
errors...

PS : I do not see these errors when i compile the same code on solaris
(forte7/8)


We do not see your code, therefore we cannot diagnose it.

-Mike

Jul 22 '05 #3
"pervinder" <pe*******@gmai l.com> wrote in message
news:90******** *************** ***@posting.goo gle.com...
Mike,
My main concern is that does gcc works with STL port ?
Ask that somewhere where those products are topical.

Here we only discuss the C++ language itself, not
particular implementations or their interoperabilit y
(or lack thereof).
Or there are some
issues. If i provide -I./stlport in the compile line, it errors and if i do not provide -I./stlport it works...
And the error is about the header files, like my code uses stdio.h, and
compilker picks this file from ./stloport/ locations, not from the standard locations.


Check the support resources for gcc and STLport.

-Mike
Jul 22 '05 #4

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

Similar topics

13
3328
by: Reply-Via-Newsgroup Thanks | last post by:
Gentle People, I've started working with a team of C++ and PHP programmers - They develope on Windoze platform which I dislike since our production servers are LAMP based, I've always believed greater effort is placed on stability with Apache/MySQL/PHP on a Linux platform than an equal setup on a windoze platform. For this reason, and to encourage them across to a Linux based development platform, they said they'd try it if I could...
383
12285
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they didn't spend their own money to get companies to
3
1627
by: Tony Lawrence | last post by:
I see lots of things like this in my error log: File does not exist: /usr/local/www/vhosts/vps.pcunix.com/htdocs/SCOFAQ/How do I solve fork failed no more processes_files, referer: http://aplawrence.com/SCOFAQ/FAQ_scotec1NPROC.html What's happened there is that they have replaced the actual filename with the contents of the title tag.
57
3717
by: B.r.a.d.l.e.y | last post by:
A client has moved a back-end data file to a Linux machine instead of Windows. It now will only let one user log in at a time and gives some sort of "admin file not found" error. My first thought was permissions to create the LDB file but they swear this is correct. (read/write access for MDB & MDW files, read/write/create access in folder) Anyone come across a similar problem?
4
1596
by: Jonah Olsson | last post by:
Dear All, I'm currently developing a solution where large amounts of personalised emails are being created (and no, this is not spam...) on the ASP.NET platform and being delivered by a Debian Linux server running Qmail and mySQL. Currently the .NET application just connects to the SMTP-port on the Linux server and sends each mail one by one. This creates an awful lot of traffic and isn't really a good way of handling >100.000...
2
1121
by: Neo | last post by:
why Microsoft Developers not like others developers (Java Dev, Linux Dev, etc)? the me without this reason of not same platform. Why they not like others?
8
6155
by: dwelch91 | last post by:
I need to detect whether the operating system I am running on (not the Python version) is 64bit or 32bit. One requirement is that I need to include support for non-Intel/AMD architectures. The 2 ways I have thought detecting 64bit are: 1. struct.calcsize("P") == 8 2. '64' in os.uname() I'm not convinced that either one of these is really adequate. Does
2
2733
by: pssraju | last post by:
Hi, At present application was built on solaris 9 using sun studio 9 (Sun C++ 5.6) & rouguewave sorce pro 5. We are planning to port the same application onto SuSE Linux 9.5.0 using GCC 3.3.3 & RW source pro 9. My application heavily uses RW tools through wrapper classes on the top existing RW classes. RW libraries were built using gcc on linux platform and standalong RW examples are working fine. Since the application compilation is moving...
20
7778
by: macca | last post by:
Hi, I just started a new web developer job (my first actually) and the machine they gave me to use is a Mac. Two days in and I'm running a Win XP environment on my Mac at work (using VMWare), firstly so I can use my favourite text editor (ConTEXT) which is only available for windows and secondly because I've never used a Mac before. But what do you think is the best all round development platform that I should use as a Web Developer?...
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.