Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: merely adding std includes gets a compiler error



Permlink Replies: 3 - Last Post: Jul 10, 2014 12:13 PM Last Post By: Rafael Azamor
Maria Jesus Alv...

Posts: 2
Registered: 3/20/14
merely adding std includes gets a compiler error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2014 4:17 AM
I'm using first time embarcadero (Embarcadero® C++Builder® XE3) Update 2

merely adding #include <string> (or #include <map>, #include <vector> .....)

get an error in bcc32: (OEMPorControllerD.cpp contains the include sentence)

[bcc32 Error] iosfwd(129): E2102 Cannot use template 'streampos' without specifying specialization parameters
Full parser context
OEMPorControllerD.cpp(1): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\string
string(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\istream
istream(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\ostream
ostream(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\ios
ios(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xlocnum
xlocnum(8): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\streambuf
streambuf(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xiosbase
xiosbase(4): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xlocale
xlocale(6): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\stdexcept
stdexcept(6): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xstring
xstring(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xmemory
xmemory(6): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\xutility
xutility(6): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\utility
utility(5): #include c:\program files (x86)\embarcadero\radstudio\10.0\include\dinkumware\iosfwd
iosfwd(9): namespace std


The error is related to iosfwd file line 129:

typedef streampos wstreampos;

Is there means to fix it? It´s making me crazy work without the standard templates.....

Maria Jesus Alv...

Posts: 2
Registered: 3/20/14
Re: merely adding std includes gets a compiler error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2014 6:54 AM   in response to: Maria Jesus Alv... in response to: Maria Jesus Alv...
Fixed after rebooting the machine ¿?
Kjell-Olov Högd...

Posts: 3
Registered: 1/27/08
Re: merely adding std includes gets a compiler error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 17, 2014 1:18 AM   in response to: Maria Jesus Alv... in response to: Maria Jesus Alv...
Maria Jesus Alvarez wrote:
Fixed after rebooting the machine ¿?

Actually - you only have to restart the IDE. This happens to me regularly (like 2-3 times a day). It is quite annoying.
Rafael Azamor

Posts: 1
Registered: 7/12/13
Re: merely adding std includes gets a compiler error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 10, 2014 12:13 PM   in response to: Kjell-Olov Högd... in response to: Kjell-Olov Högd...
It's HELL!

Kjell-Olov Högdahl wrote:
Maria Jesus Alvarez wrote:
Fixed after rebooting the machine ¿?

Actually - you only have to restart the IDE. This happens to me regularly (like 2-3 times a day). It is quite annoying.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02