Menu

Open & Compile in MS VC++ 6

Help
Mattias
2004-06-17
2004-06-18
  • Mattias

    Mattias - 2004-06-17

    There are no .dsp or .dsw files in 1.5 beta. So im not sure how to open all the files.
    I have tried to add all the files to a empty Win32 project.
    But i get 32 errors & 8 warnings when i compile.
    Anyone that know how to open the waste source and compile it in ms vc++ 6.0?

     
    • md5chap

      md5chap - 2004-06-17

      Waste was ported to a newer c++ standard.
      It compiles clean under gnu c++ compiler or on the new microsoft 13.10 compiler that you can free download from microsoft. you can also use Visual Studio 2003.
      there is a makefile (zwinmakefile) to compile with the free MS compiler.

       
    • Mattias

      Mattias - 2004-06-18

      I found microsofts free compiler. But i can't compile.
      Im typed: cl zwinmakefile
      Then i get error: LINK : fatal error LNK1181: cannot open input file 'zwinmakefile.obj'

      Have also tried to compile all .cpp files. Then i get error: ...\stdafx.hpp(24) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory.

      How do i compile it?

       
      • md5chap

        md5chap - 2004-06-18

        the main compile file to start is ZWinMake.bat
        It starts the makefile.

        you also need the platform sdk to compile. All  header files like winsock2.h are in there.
        you can download it from
        http://www.microsoft.com/msdownload/platformsdk/sdkupdate
        it's free, too. You need the core sdk from it.

        With both the compiler and the sdk, you have a full platform for compiling software for c/c++. This is the main part of visual c++.

         
    • Mattias

      Mattias - 2004-06-18

      Thanks for you help md5chap. I can now run the zwinmake.bat file and it starts to compile. But i get some errors.. I have not changed anything in the source code, im using v1.5 Beta 2 sourcecode.

      Command line warning D4002 : ignoring unknown option '/GL'
      Command line warning D4002 : ignoring unknown option '/GS'

      blowfish.cpp(42) : warning C4163: '_byteswap_ulong' : not available as an intrinsic function
      blowfish.cpp(392) : error C2065: '_byteswap_ulong' : undeclared identifier
      blowfish.cpp(440) : error C2258: illegal pure syntax, must be '= 0'
      blowfish.cpp(440) : error C2252: 'blocklen' : pure specifier can only be specified for functions

      Do anyone know whats wrong?

       
    • md5chap

      md5chap - 2004-06-18

      yes I can...
      It seems that your environment variables point to visual studio 6.
      vc6 compiler doesn't know what /GS is.

      I assume that you have selected not to setup environment with free compiler...
      so you need to find something like vcvars.bat in the free compiler dir to set the paths and environment.
      so open cmd.exe, start vcvars.bat, goto waste source and run zwinmake.bat

       
    • Mattias

      Mattias - 2004-06-18

      Thanks! Now i got i to work! :-)

       

Log in to post a comment.