Hi,
This does not compile with g++-3.2. This is necessary for it to be able to link with libraries built using g++-3.2 which is becoming the standard on a lot of distributions
Shri
Logged In: YES user_id=577739
These changes made it compile (and work to some degree) with gcc 3.2.2:
diff -r clint-0.1.2/lib/python/python.h clint-0.1.2-new/lib/python/python.h 10c10 < #include <strstream> --- > #include <sstream> // SW changed this 15c15,17 < #define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1 --- > // SW changed this > //#define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1 > #define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0 20a23 > diff -r clint-0.1.2/lib/python/seqbase_iter.cc clint-0.1.2-new/lib/python/seqbase_iter.cc 1a2 > #include <iostream> // SW added 113c114 < --- > // SW ostrstream seems to be gone from std libraries. What is replacement? 116c117,118 < std::ostrstream oss; --- > // std::ostrstream oss; > std::ostringstream oss; 119a122 > diff -r clint-0.1.2/src/clint.cc clint-0.1.2-new/src/clint.cc 28c28 < #include <iostream.h> --- > #include <iostream> // SW changed diff -r clint-0.1.2/src/input.cc clint-0.1.2-new/src/input.cc 24a25 > #include <iosfwd> // SW added 70a72 > using namespace std; // SW added
Logged In: NO
Same problem here.
The patch from stevan_white made it compile.
Log in to post a comment.
Logged In: YES
user_id=577739
These changes made it compile (and work to some degree)
with gcc 3.2.2:
diff -r clint-0.1.2/lib/python/python.h
clint-0.1.2-new/lib/python/python.h
10c10
< #include <strstream>
---
> #include <sstream> // SW changed this
15c15,17
< #define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
---
> // SW changed this
> //#define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
> #define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0
20a23
>
diff -r clint-0.1.2/lib/python/seqbase_iter.cc
clint-0.1.2-new/lib/python/seqbase_iter.cc
1a2
> #include <iostream> // SW added
113c114
<
---
> // SW ostrstream seems to be gone from std libraries.
What is replacement?
116c117,118
< std::ostrstream oss;
---
> // std::ostrstream oss;
> std::ostringstream oss;
119a122
>
diff -r clint-0.1.2/src/clint.cc clint-0.1.2-new/src/clint.cc
28c28
< #include <iostream.h>
---
> #include <iostream> // SW changed
diff -r clint-0.1.2/src/input.cc clint-0.1.2-new/src/input.cc
24a25
> #include <iosfwd> // SW added
70a72
> using namespace std; // SW added
Logged In: NO
Same problem here.
The patch from stevan_white made it compile.