Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-02-2005, 01:27 AM   #1
LQ Newbie
Registered: Sep 2005
Location: India
Posts: 5

Rep: Reputation: 0
gcc compiler error

Please resolve the following gcc compiler error in /usr/include/c++/3.2.3/bits/fstream.tcc

In file included from /usr/include/c++/3.2.3/fstream:576,
/usr/include/c++/3.2.3/bits/fstream.tcc: In member function `virtual
_Traits::pos_type std::basic_filebuf<_CharT,
_Traits>::seekoff(_Traits::off_type, std::_Ios_Seekdir,
/usr/include/c++/3.2.3/bits/fstream.tcc:455: syntax error before `this'
Old 09-02-2005, 01:47 AM   #2
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
i think oyu might want to use...g++ instead of gcc
Old 09-02-2005, 06:32 AM   #3
LQ Newbie
Registered: Sep 2005
Location: India
Posts: 5

Original Poster
Rep: Reputation: 0
It is the same error with g++ also. I am using the version is

Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Old 09-02-2005, 10:23 PM   #4
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Often this means you're misusing something defined in the header file. I'm not much of a C++ expert, but if you could post some of the code you're compiling, it might help. Are you doing something weird with an fstream object somewhere?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 02:29 AM
How do I fix this assignment problem C++ compiler error in GCC? Erik_the_Red Programming 4 07-12-2005 10:36 AM
Problem with gcc: configure: error: C compiler cannot create executable abefroman SUSE / openSUSE 4 05-11-2005 07:12 PM
Gcc compiler error Yoda Sabre Linux - Software 9 08-16-2004 04:53 PM
gcc compiler error / linux headers install help SciYro Linux - Software 2 12-07-2003 02:44 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration