wbest
July 2nd, 2009, 04:38 PM
Hey, I have some windows C++ code I need to port to Linux (Really wbest? You do? I wouldn't have guessed based off the other dozen threads you started on the subject)
Anyway, I'm trying to compile a program, but keep getting the following error output
In file included from include/rw/rstream.h:46,
from include/rw/cstring.h:33,
from include/core/typedef.h:35,
from include/core/property.h:25,
from include/core/core.h:32,
from include/core/string_helper.h:16,
from include/core/trans.h:14,
from include/tw_precomp.h:108,
from SMsgGroup.cpp:1:
/usr/include/c++/4.2/backward/iostream.h:35: error: ‘ostream’ is already declared in this scope
/usr/include/c++/4.2/backward/iostream.h:36: error: ‘istream’ is already declared in this scope
/usr/include/c++/4.2/backward/iostream.h:37: error: ‘ios’ is already declared in this scope
*rstream.h only calls #include <iostream> once
(I changed the code to make it only call once, originally it had several setup in if/thens such that only one could be called)
*tpyedef.h calls #include <iostream> (as well as strstream) in
#ifdef NOT_STL_STRING
#include <iostream>
#include <strstream>
#define RWAV_STRING
#endif
#ifdef USE_COMPAT
#include <rw/cstring.h>
*property does not call it
*core does not call it
*string helper does not call it
*trans does not call it
*tw_precomp calls it, as well as <io>
(io is a windows only header file, near as I can tell, right now I have an empty file standing in for it, under suggestion in another thread)
*SMsgGroup does not call it
I can't give out too much code, because this is for work and there's non-disclosure and copyright laws and stuff I need to worry about; I'm already a bit uneasy putting out what i put out.
Anyway, I'm trying to compile a program, but keep getting the following error output
In file included from include/rw/rstream.h:46,
from include/rw/cstring.h:33,
from include/core/typedef.h:35,
from include/core/property.h:25,
from include/core/core.h:32,
from include/core/string_helper.h:16,
from include/core/trans.h:14,
from include/tw_precomp.h:108,
from SMsgGroup.cpp:1:
/usr/include/c++/4.2/backward/iostream.h:35: error: ‘ostream’ is already declared in this scope
/usr/include/c++/4.2/backward/iostream.h:36: error: ‘istream’ is already declared in this scope
/usr/include/c++/4.2/backward/iostream.h:37: error: ‘ios’ is already declared in this scope
*rstream.h only calls #include <iostream> once
(I changed the code to make it only call once, originally it had several setup in if/thens such that only one could be called)
*tpyedef.h calls #include <iostream> (as well as strstream) in
#ifdef NOT_STL_STRING
#include <iostream>
#include <strstream>
#define RWAV_STRING
#endif
#ifdef USE_COMPAT
#include <rw/cstring.h>
*property does not call it
*core does not call it
*string helper does not call it
*trans does not call it
*tw_precomp calls it, as well as <io>
(io is a windows only header file, near as I can tell, right now I have an empty file standing in for it, under suggestion in another thread)
*SMsgGroup does not call it
I can't give out too much code, because this is for work and there's non-disclosure and copyright laws and stuff I need to worry about; I'm already a bit uneasy putting out what i put out.