[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] OpenCobol setup troubles (error: libcob.h: No such

From: Michael Anderson
Subject: Re: [open-cobol-list] OpenCobol setup troubles (error: libcob.h: No such file or directory)
Date: Sun, 16 Sep 2012 22:39:05 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

Are you using Gnu on Windows or the Microsoft C compiler?

If Gnu on Windows, then please ignore this, I've not had much success with Cygwin/MinGW.

On Windows using the Microsoft compiler then (Extract/unzip from the C:\) make sure the OpenCOBOL directory is:

Don't forget to add it to $PATH, for me things just worked when installed to this directory.
Also don't forget vcvars.bat for the Microsoft C compiler.

call "C:\Program Files\Microsoft Visual Studio10.0\VC\bin\vcvars32.bat"
The above path may vary depending on your environment, so you may need to search for "vcvars32.bat" file
and modify the path as needed.

The call to the vcvars bat file only needs to be done once per (cmd window) session.
More info at

On 09/16/2012 07:22 PM, Andrew Pennebaker wrote:
Can you do the following:

SET > c:\vars.txt

And send me the c:\vars.txt file?
Attached. I suspect there's yet another environment variable I need to configure in order for cobc.exe and related binaries to be able to find the OpenCobol include directory, but neither the PDF tutorial that comes with these executables, nor other online documentation specifies any env var that seems to be relevant.

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 

open-cobol-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]