Loading ...
Sorry, an error occurred while loading the content.

Solved - Re: problems building vim 6.2 with visual C++ 6.0

Expand Messages
  • Holger Ditting
    ... /Ox ... Just if anybody is interested. Now it works, at least with Win2k and Visual C++ 7.0 I had to change Make_mvc.mak and set the environment variables
    Message 1 of 1 , Jul 3, 2003
    • 0 Attachment
      On Jul 2, 9:03, Holger Ditting wrote:
      > Subject: problems building vim 6.2 with visual C++ 6.0
      > Hello,
      >
      > after using vim several years with UNIX I have to move to Windows :-(
      > To use it there with SNiFF+ I tried to compile it with VisualC++ 6.0 but
      > failed.
      >
      > I got vim-6.2-tar.bz2, vim-6.2-extra.tar.gz (and vim-6.2-lang.tar.gz, which I
      > probably won't need). Is there anything else I need?
      >
      > ------------------------------ Snip ------------------------------
      > $ vcvars32
      > Setting environment for using Microsoft Visual C++ tools.
      >
      > $ nmake /f Make_mvc.mak GUI=yes OLE=yes SNIFF=yes
      > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
      > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
      >
      >
      > if not exist .\ObjGO/nul mkdir .\ObjGO
      > creating auto/pathdef.c
      > cl -c /W3 /nologo -DWIN32 -D_WIN32 -D_MT -MT -I. -Iproto
      > -DHAVE_PATHDEF -DWIN32 -DFEAT_SNIFF -DWINVER=0x400 -D_WIN32_WINNT=0x400
      /Ox
      > -DNDEBUG /Zi -DFEAT_OLE -DFEAT_GUI_W32 -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT
      > -DFEAT_BIG auto/pathdef.c /Fo.\ObjGO/pathdef.obj /Fd.\ObjGO/ pathdef.c
      > auto/pathdef.c(0) : fatal error C1033: cannot open program database
      > 'f:\vim62\sr
      > c\objgo\vc60.pdb'
      > NMAKE : fatal error U1077: 'cl' : return code '0x2'
      > Stop.
      >
      > ------------------------------ Snap ------------------------------


      Just if anybody is interested.
      Now it works, at least with Win2k and Visual C++ 7.0

      I had to change Make_mvc.mak and set the environment variables INCLUDE
      and PATH.Maybe someone can check/verify my changes to Make_mvc.mak
      since I am not familiar with Microsoft's makefiles and build process.

      With sniff enabled gvim.exe needs a multithreaded libc but tries to
      use libc.lib. So I got many unresolved symbols.

      BTW, it's great to be able to use gvim with SNiFF+.

      changes to Make_mvc.bat
      old:
      ! ifndef USE_MSVCRT
      LIBC = libc.lib
      ! else
      CFLAGS = $(CFLAGS) -MD
      LIBC = msvcrt.lib
      ! endif

      new:
      ! ifdef USE_MSVCRT
      CFLAGS = $(CFLAGS) -MD
      LIBC = msvcrt.lib
      ! elseifdef MULTITHREADED
      LIBC = libcmt.lib
      ! else
      LIBC = libc.lib
      ! endif


      less readable diff output:
      ------------------------------ Snip ------------------------------
      $ diff original/src/Make_mvc.mak changed/src/Make_mvc.mak
      254,256c254,255
      < ! ifndef USE_MSVCRT
      < LIBC = libc.lib
      < ! else
      ---
      >
      > ! ifdef USE_MSVCRT
      258a258,261
      > ! elseifdef MULTITHREADED
      > LIBC = libcmt.lib
      > ! else
      > LIBC = libc.lib
      259a263
      >
      ------------------------------ Snap ------------------------------



      script MAKE.bat:
      ------------------------------ Snip ------------------------------
      rem
      rem this script calls everything to build gvim with gui, ole, sniff
      rem
      rem HD, 03.07.2003
      rem

      call vcvars32.bat

      set INCLUDE=%INCLUDE%;C:\Program Files\Microsoft Visual Studio
      .NET\Vc7\PlatformSDK/Include

      set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio
      .NET\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE

      call nmake -f Make_mvc.mak GUI=yes OLE=yes SNIFF=yes
      ------------------------------ Snap ------------------------------





      Holger
      --
      no sig today
    Your message has been successfully submitted and would be delivered to recipients shortly.