No success at all installing OC 1.1 native Win.

NettoBr4
2014-04-17
2014-04-22
  • NettoBr4

    NettoBr4 - 2014-04-17

    Hi People,

    Here I am, trying to install and run OC 1.1 in 3 Windows machines without success on compiling.

    The result is always the same:

    C:\OpenCobol>cobc -x hworld.cbl
    'cl' not recognized as a internal or external command, 
     a program or batch file.
    

    source

           IDENTIFICATION DIVISION.
           PROGRAM-ID. HWorld.
    
           ENVIRONMENT DIVISION.
           CONFIGURATION SECTION.
    
           INPUT-OUTPUT SECTION.
    
           DATA DIVISION.
    
           FILE SECTION.
    
           WORKING-STORAGE SECTION.
    
           PROCEDURE DIVISION.
    
           MAIN-PROCEDURE.
    
                DISPLAY "Hello World by Vieira- HWorld"
    
                STOP RUN.
    
           END PROGRAM HWorld.
    

    I saw a topic on old OC Forum "Installation under Windows 7 64 bit [solved]" from 2011 but did not help me.

    Opencobolide is working pretty well.

    All three Installation where made using Sergey hints form www.kiska.net/opencobol/1.1/ .

    First Installation: Windows XP running on Virtual Box.

    I´ve downloaded http://www.kiska.net/opencobol/1.1/opencobol-1.1-win-vb-win32-bin.zip
    
    After unzipped, OpenCobol dir was moved to C:\
    
    Then "vcredist_x86.exe", that came in zip package were installed.
    
    "http://www.kiska.net/opencobol/1.1/opencobol-win-vs2008.zip" downloaded and unzipped.
    
    "build_vbisam" subdirectory were moved to C:\OpenCobol dir, not to Open-cobol-1.1 as mentioned.
    
    After all done I get the error mentioned above.
    

    Second Installation: Windows 7 Home x64 running on my notebook.

    I´ve downloaded http://www.kiska.net/opencobol/1.1/opencobol-1.1-win-vb-amd64-bin.zip
    
    After unzipped, OpenCobol dir was moved to C:\
    
    Then "vcredist_x64.exe", that came in zip package were installed.
    
    "http://www.kiska.net/opencobol/1.1/opencobol-win-vs2008.zip" downloaded and unzipped.
    
    "build_vbisam" subdirectory were moved to C:\OpenCobol dir, not to Open-cobol-1.1 as mentioned.
    
    After all done I get the error mentioned above.
    

    Third Installation: Windows 7 Ultimate x64 running on Virtual Box.

    I´ve downloaded http://www.kiska.net/opencobol/1.1/opencobol-1.1-win-vb-amd64-bin.zip
    
    After unzipped, OpenCobol dir was moved to C:\
    
    Then "vcredist_x64.exe", that came in zip package were installed.
    
    "http://www.kiska.net/opencobol/1.1/opencobol-win-vs2008.zip" downloaded and unzipped.
    
    "build_vbisam" subdirectory were moved to C:\OpenCobol dir, not to Open-cobol-1.1 as mentioned.
    
    After all done I get the error mentioned above.
    

    I think it is a silly mistake, but cant figure out what is wrong.

    Please, someone can help me?

    NettoBr4
    from Brazil, land of beautiful beaches and women.

     
    Last edit: Simon Sobisch 2014-04-17
  • Simon Sobisch

    Simon Sobisch - 2014-04-17

    Opencobolide comes with a stripped MinGW installation (GCC as C compiler).

    The "native win" you talk about needs a "native win C compiler" - all packages from kiska need VisualStudio (Express version work too) installed. If you have Visual C++ (or from version 2012 on called Visual Studio for Windows Desktop) on your machine either start the Visual Studio Command Prompt before calling cobc or call a batch like the attached one before (only works for 32 bit).
    If you don't have Visual Studio installed get an express version from MS for free, use version 2012 above to remove the need of an additional Win-SDK.

    Simon

     
  • NettoBr4

    NettoBr4 - 2014-04-19

    Hi Simon,

    Thanks so much for your answer.

    Well, I thought "vcredist_x64.exe" was enough, but how a poor guy am I?

    Ok, I´ve tried to install express but it´s saying it is an evaluation version and will only work for a 30 days period. If I´ve chose the wrong option, no problem.

    I will give up "native win" and give MinGW a try.

    Please, what I need is to compile a program and redistribute the .exe to friends, to be executed by them without any addon, peace of additional software installed, on which one windows. Or almost this. Is this possible?

    Thanks again.

    NettoBr4

     
  • Simon Sobisch

    Simon Sobisch - 2014-04-22

    If you use the VS version you need the VC redist for the version of your cl.exe (and additional the VC redist of the cl.exe that was used to compile libcob [should be the same if possible]), together with pdcurses.dll (if SCREEN support was not disabled) and libdbnn.dll or libvbisam.dll (depending on the configured ISAM support, nn being the version number of libdb, for example 44; none if ISAM was disabled) and libgmp.dll (or (lib)mpir.dll (depending on the build).

    The Mingw version will likely need some more dlls.

    In both cases depends will show you what is needed (simnply drop libcob.dll on it).

    BTW: Visual Studio Express Versions need to be registered (free of charge) for Visual Studio to work. For using with cobc the unregistered version will work, too, as you don't need the full IDE but simply cl.exe.

    Simon

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks