Menu

Anyone successfully compiled 1.9.2 w/ msvc++?

Help
2002-02-07
2002-02-08
  • shea martin

    shea martin - 2002-02-07

    My build of the release .dll works fine, but the debug .dll  aborts with this error:
    --------------------Configuration: CCXX - Win32 Debug--------------------
    Compiling...
    config.cpp
    d:\commonc++-1.9.3\win32\config.h(64) : fatal error C1189: #error :  Please enable DLL linking (Project -> Settings -> C/C++ -> Code Generation -> Use Runtime Library)
    Error executing cl.exe.

    CCGNU32v2d.dll - 1 error(s), 0 warning(s)

    A quick check in code generation's runtime lib says that I am using multithreaded .dll!  Anyone know what to do to get this to compile?

    ~S

     
    • Frediano Ziglio

      Frediano Ziglio - 2002-02-07

      In release it compile??
      It's very strange.
      What compiler version do you use ??

       
    • shea martin

      shea martin - 2002-02-08

      when I turned dynamic linking on, I was turning it on for the wrong file.  Ooops.  Once I set dll on for the debug build, it worked.

       
    • shea martin

      shea martin - 2002-02-08

      The install.bat does not work either.  I hade to change the location of some ""'s, and change the name of the *.dll's and *.libs.
      Here is the result:

      ++++++++++++++++++++++++++++++++++++++++++++++

      @echo off
      :: $Id: install.bat,v 1.17 2002/01/17 13:40:41 dyfet Exp $

      if "%MSVCDir%" == "" goto error1
      if "%MSDevDir%" == "" set MSDevDir=%MSVCDir%
      if "%DLL_PATH%" == "" set DLL_PATH=%MSDevDir%\Bin

      set _nul_=nul
      IF "%OS%" == "Windows_NT" set _nul_=

      :: Copy all DLL in a directory in path
      if not exist "%DLL_PATH%\%_nul_%" mkdir "%DLL_PATH%"
      copy debug\ccgnu32v2D.dll  "%DLL_PATH%"
      copy release\ccgnu32v2.dll "%DLL_PATH%"

      :: Copy all include headers
      if not exist "%MSVCDir%\Include\cc++/%_nul_%" mkdir "%MSVCDir%\Include\cc++"
      if exist "%MSVCDir%\Include\cc++\*.h" del "%MSVCDir%\Include\cc++\*.h"
      copy config.h   "%MSVCDir%\Include\cc++"
      copy ..\src\*.h "%MSVCDir%\Include\cc++"
      del "%MSVCDir%\Include\cc++\private.h"

      :: Copy library files
      if not exist "%MSVCDir%\lib\%_nul_%" mkdir "%MSVCDir%\lib"
      copy debug\ccgnu32v2D.lib   "%MSVCDir%\lib"
      copy release\ccgnu32v2.lib  "%MSVCDir%\lib"

      goto end

      :error1
      echo The "MSVCDIR" environment variable has not been defined.
      echo Typically this is C:\Program Files\Microsoft Visual Studio\VC98
      echo.
      echo For Windows 95/98/ME users:
      echo   Select Start/Run
      echo Type in:
      echo   notepad C:\AUTOEXEC.BAT
      echo and add the following line:
      echo   SET MSVCDIR=C:\Program Files\Microsoft Visual Studio\VC98
      echo Change the above to suit your system, as needed.
      echo.
      echo For Windows NT/2000/XP users:
      echo   Select Start/Settings/Control Panel/System/Advanced/Environment Variables/System Variables
      echo.
      goto end

      :end

      +++++++++++++++++++++++++++++++++++++++++

       

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.