www.digitalmars.com         C & C++   DMDScript  

c++ - STLport 4.5.3

reply Christof Meerwald <cmeerw web.de> writes:
I have now got STLport 4.5.3 working (except for STLport's rope extension)
with the latest DM C++ beta (8.29.17).

Best of all, I even got the library part (iostreams, ...) working (but it's
mostly untested).

Don't worry, I will release all my changes real soon now - I just have to
clean it up a bit...


Many thanks to Walter for the great support!

(Tracking down and reporting bugs is really much more fun when you know that
they will be fixed soon)


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jul 27 2002
next sibling parent reply "V. Krishnakumar" <lvimala eth.net> writes:
"Christof Meerwald" <cmeerw web.de> wrote in message
news:ahu7lq$30rj$1 digitaldaemon.com...
 I have now got STLport 4.5.3 working (except for STLport's rope extension)
 with the latest DM C++ beta (8.29.17).

 Best of all, I even got the library part (iostreams, ...) working (but
it's
 mostly untested).

 Don't worry, I will release all my changes real soon now - I just have to
 clean it up a bit...
I've been eagerly waiting for this message. Great !
 Many thanks to Walter for the great support!

 (Tracking down and reporting bugs is really much more fun when you know
that
 they will be fixed soon)
Due to phone line problems, I lost my net connectivity for some time. Seems like Walter has given a terrific lesson in counting :-) Thanks! Walter. btw, can anyone point me to the latest OMF spec ? I'm working on a little omf2elf converter. cheers, -Krish
Jul 27 2002
parent Christof Meerwald <cmeerw web.de> writes:
On Sat, 27 Jul 2002 21:13:38 +0530, V. Krishnakumar wrote:
 btw, can anyone point me to the latest OMF spec ? I'm working on a little
 omf2elf converter.
Don't know if it's the latest spec, but here is one: http://x86.ddj.com/intel.doc/tools.htm bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Jul 27 2002
prev sibling next sibling parent "Walter" <walter digitalmars.com> writes:
Ok, I put up 8.29.18 which should fix the rope error.

"Christof Meerwald" <cmeerw web.de> wrote in message
news:ahu7lq$30rj$1 digitaldaemon.com...
 I have now got STLport 4.5.3 working (except for STLport's rope extension)
 with the latest DM C++ beta (8.29.17).

 Best of all, I even got the library part (iostreams, ...) working (but
it's
 mostly untested).

 Don't worry, I will release all my changes real soon now - I just have to
 clean it up a bit...


 Many thanks to Walter for the great support!

 (Tracking down and reporting bugs is really much more fun when you know
that
 they will be fixed soon)


 bye, Christof

 --
 http://cmeerw.org                                 JID: cmeerw jabber.at
 mailto cmeerw at web.de

 ...and what have you contributed to the Net?
Jul 27 2002
prev sibling next sibling parent reply Christof Meerwald <cmeerw web.de> writes:
I have uploaded the diff against STLport 4.5.3 to
http://cmeerw.org/files/dm/STLport-4.5.3-dm.diff

For those who aren't familiar with these diffs:

- get http://www.stlport.org/archive/STLport-4.5.3.tar.gz (or
  http://www.stlport.org/archive/STLport-4.5.3.zip)

- unpack STLport
- cd STLport-4.5.3
- patch -sp1 <..\STLport-4.5.3-dm.diff

(I have also uploaded a Win32 patch.exe (from
http://unxutils.sourceforge.net) to http://cmeerw.org/files/dm/patch.exe)


The STL part should now work fine with the latest DM beta (8.29.18).


The library part (iostreams, ...) compiles (comment out the
_STLP_NO_NEW_IOSTREAMS define in stlport/config/stl_dm.h and see
stlport/src/dm.mak) and can be used if you statically link your program with
the .obj files (but don't link with complex_trig.obj)

Building a static library doesn't work because of symbol length limitations
in DM's Librarian (Assertion failure: 'len <= IDMAX' on line 129 in file
'libin.cpp')

Building a DLL works, but a dynamically linked program crashes somewhere
during initialization.


bye, Christof

PS: I am currently using a few nasty tricks in the STLport configuration
(stlport/config/stl_dm.h) to make it work with a minimum of changes...

-- 
http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jul 27 2002
next sibling parent Jan Knepper <jan smartsoft.cc> writes:
Christof Meerwald wrote:

 Building a static library doesn't work because of symbol length limitations
 in DM's Librarian (Assertion failure: 'len <= IDMAX' on line 129 in file
 'libin.cpp')
I used to have a patched version of LIB.exe that solved that problem. LIB.exe indeed keeps a very short limit on symbol name lengths. Jan
Jul 27 2002
prev sibling next sibling parent Christof Meerwald <cmeerw web.de> writes:
On Sun, 28 Jul 2002 00:52:45 +0000 (UTC), Christof Meerwald wrote:
 Building a DLL works, but a dynamically linked program crashes somewhere
 during initialization.
I guess one of the problems is that I haven't used __declspec(dllimport). But using __declspec(dllimport) seems to sometimes confuse DM. Here is a test-case: struct __declspec(dllimport) A { int f() const; int f(int); }; int main() { { typedef int (A::*f_ptr_t)(int); f_ptr_t f = &A::f; // Error: need explicit cast to convert // from: int ( A::*__import member func)()const * // to : int ( A::*member func)(int ) } return 0; } I have now got a simple "std::cout << "Hello world" << std::endl;" program working (dynamically linked with STLport) bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Jul 28 2002
prev sibling parent reply Christof Meerwald <cmeerw web.de> writes:
I have slightly updated the patch and added some description at
http://cmeerw.org/prog/dm/


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jul 28 2002
parent reply "V. Krishnakumar" <lvimala eth.net> writes:
"Christof Meerwald" <cmeerw web.de> wrote in message
news:ai1l7o$jpp$1 digitaldaemon.com...
 I have slightly updated the patch and added some description at
 http://cmeerw.org/prog/dm/
Christof, I'm unable to compile the library. Make dies in c_locale.cpp. Are there any other changes other than commenting out _STLP_NO_NEW_IOSTREAMS define in /config/stl_dm.h ? -Krish
Jul 31 2002
parent reply Christof Meerwald <cmeerw web.de> writes:
On Thu, 1 Aug 2002 00:06:17 +0530, V. Krishnakumar wrote:
 Christof, I'm unable to compile the library. Make dies in c_locale.cpp. Are
 there any other changes other than commenting out _STLP_NO_NEW_IOSTREAMS
 define in /config/stl_dm.h ?
If you are using DM's MS-SDK headers, you also have to define STRICT to get the library building (or get the latest patch from my site that should include that change). If that doesn't help please post the error message you are getting. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Jul 31 2002
parent "Walter" <walter digitalmars.com> writes:
"Christof Meerwald" <cmeerw web.de> wrote in message
news:ai9dir$1nhg$1 digitaldaemon.com...
 On Thu, 1 Aug 2002 00:06:17 +0530, V. Krishnakumar wrote:
 Christof, I'm unable to compile the library. Make dies in c_locale.cpp.
Are
 there any other changes other than commenting out _STLP_NO_NEW_IOSTREAMS
 define in /config/stl_dm.h ?
If you are using DM's MS-SDK headers, you also have to define STRICT to
get
 the library building (or get the latest patch from my site that should
 include that change).

 If that doesn't help please post the error message you are getting.
I have just posted the already patched and ready-to-rock STLport incorporating your changes at www.digitalmars.com/dmc/dmcppDownload.html
Jul 31 2002
prev sibling parent "Walter" <walter digitalmars.com> writes:
This is fantastic! Great work!

"Christof Meerwald" <cmeerw web.de> wrote in message
news:ahu7lq$30rj$1 digitaldaemon.com...
 I have now got STLport 4.5.3 working (except for STLport's rope extension)
 with the latest DM C++ beta (8.29.17).

 Best of all, I even got the library part (iostreams, ...) working (but
it's
 mostly untested).

 Don't worry, I will release all my changes real soon now - I just have to
 clean it up a bit...


 Many thanks to Walter for the great support!

 (Tracking down and reporting bugs is really much more fun when you know
that
 they will be fixed soon)


 bye, Christof

 --
 http://cmeerw.org                                 JID: cmeerw jabber.at
 mailto cmeerw at web.de

 ...and what have you contributed to the Net?
Jul 28 2002