home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / stlport / config / stl_select_lib.h < prev    next >
C/C++ Source or Header  |  2001-05-26  |  2KB  |  37 lines

  1. # if !defined (_STLP_NO_OWN_IOSTREAMS)
  2.  
  3. #  if ! defined (_STLP_LIB_STATIC_SUFFIX)
  4. #   define _STLP_LIB_STATIC_SUFFIX ""
  5. #  endif
  6.  
  7. // Note : the code below is intended to make use of compiled
  8. // STLport iostreams easier. If you are with to change names used for
  9. // STLport libraries , please also change RELEASE_NAME and DEBUG_NAME
  10. // macros in makefile ../../src/vc6.mak (or whatever .mak you are using to build
  11. // STLport). If you are using binaries, you may just rename the binaries.
  12. #    if ! defined (__BUILDING_STLPORT) && ! defined (_STLP_DONT_FORCE_MSVC_LIB_NAME)
  13. #     if defined (_STLP_USE_DECLSPEC)
  14. #      ifdef _STLP_DEBUG
  15. #       pragma comment(lib, _STLP_LIB_BASENAME"_stldebug.lib")
  16. #      elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB)
  17. #       pragma comment(lib, _STLP_LIB_BASENAME"_debug.lib")
  18. #      else
  19. #       pragma comment(lib, _STLP_LIB_BASENAME".lib")
  20. #      endif
  21. #     else /* _STLP_USE_DECLSPEC */
  22. // fbp : for static linking, debug setting _MUST_ correspond to what
  23. // has been compiled into binary lib
  24. #      ifdef _STLP_DEBUG
  25. #       if (! defined (_DEBUG))
  26. #        error "For static link with STLport library, _DEBUG setting MUST be on when _STLP_DEBUG is on. (/MTd forces _DEBUG)"
  27. #       endif
  28. #       pragma comment(lib, _STLP_LIB_BASENAME"_stldebug"_STLP_LIB_STATIC_SUFFIX".lib")
  29. #      elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB)
  30. #       pragma comment(lib, _STLP_LIB_BASENAME"_debug"_STLP_LIB_STATIC_SUFFIX".lib")
  31. #      else
  32. #       pragma comment(lib, _STLP_LIB_BASENAME""_STLP_LIB_STATIC_SUFFIX".lib")
  33. #      endif
  34. #     endif /* _STLP_USE_DECLSPEC */
  35. #    endif /* __BUILDING_STLPORT */
  36. #   endif /* _STLP_OWN_IOSTREAMS */
  37.