Menu

#7 Provide support for Visual Studio 2008

open
nobody
None
5
2020-02-27
2008-06-24
Jeff H
No

I've been trying STLport 5 (we're currently using 5.0.1) with VS2008. As far as I can tell, the only problem is a missing #define in the config header _msvc.h. 5.1.5 does not have this set up either. Without this, you get lots of errors conforming to MS KB127900.

stlport\stlport\stl/_locale.h(108) : error C2487:
'collate' : member of dll interface class may not be declared with dll interface
etc.

If _STLP_STATIC_CONST_INIT_BUG is defined manually, everything appears to compile and link. Changing the compiler version used in the _msvc.h from 1401 to 1500 also appeared to solve the problem.

Obviously since this is a feature request I'd request a bit more in the way of testing beyond just changing this #define for the next release.

Thanks.

Discussion

  • Jeff H

    Jeff H - 2008-06-24

    Logged In: YES
    user_id=2127218
    Originator: YES

    Also discovered that the debug mode of STLport conflicts with the new Windows SDK 2008 - both define a token __in_range (STLport as a debugging function, Windows as a macro). This leads to a compiler error. Turning off STLport debug mode suppresses it.

     
  • Robert Pollak

    Robert Pollak - 2020-02-27

    I have attached the patch, since the link is broken.

     
  • sluge

    sluge - 2020-02-27

    Thanks! You will be surprised but yesturday I finish porting by myself) I haven't rebuild stlport dll, just projects that uses STLPort.
    The main problem was Visual Studio 2019 split include filders into two parts, the only work is to fix includes. Later I plan to test my fix on Linux to make sure it doesn't break the Linux build

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.