I installed gnucobol 3.0 under cygwin on windows 10. I tried to compile
a program and got the message fatal error libcob.h: No such file or
directory. I just started learning Cobol programming. How can I fix
this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-08-31
Did you manage to find a solution to this error?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you install ALL the packages -dev or -devel) extra packages ?
Not knowing cygwin but did you run ldconfig after building the compiler error free.
On Linux you need to do this having added a /etc/ld.so.conf.d containing a file say called
gnu-cobol.conf that contains some thing like the following but this is from a linux install :
/usr/local/lib/gnu-cobol
/usr/local/lib
/usr/lib
Paths make need to be changed under Windows.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
While this post is totally old, as GnuCOBOL 3.0 is...
The error on missing libcob.h only happens when moving the GnuCOBOL installation; this commonly only happens on Win32 and all packages distributed for it have a set_env.cmd which temporarily adjust the installation paths via environment variables using its own path.
Moving anything out of a cygwin installation is not supported by cygwin and cygwin generated binaries are not intended to be executed outside of cygwin either - use mingw builds if you want that.
BTW: The last time I need to run ldconfig must have been over 10 years ago...
Last edit: Simon Sobisch 2022-09-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed gnucobol 3.0 under cygwin on windows 10. I tried to compile
a program and got the message fatal error libcob.h: No such file or
directory. I just started learning Cobol programming. How can I fix
this error.
Did you manage to find a solution to this error?
Did you install ALL the packages -dev or -devel) extra packages ?
Not knowing cygwin but did you run ldconfig after building the compiler error free.
On Linux you need to do this having added a /etc/ld.so.conf.d containing a file say called
gnu-cobol.conf that contains some thing like the following but this is from a linux install :
/usr/local/lib/gnu-cobol
/usr/local/lib
/usr/lib
Paths make need to be changed under Windows.
While this post is totally old, as GnuCOBOL 3.0 is...
The error on missing libcob.h only happens when moving the GnuCOBOL installation; this commonly only happens on Win32 and all packages distributed for it have a
set_env.cmdwhich temporarily adjust the installation paths via environment variables using its own path.Moving anything out of a cygwin installation is not supported by cygwin and cygwin generated binaries are not intended to be executed outside of cygwin either - use mingw builds if you want that.
BTW: The last time I need to run
ldconfigmust have been over 10 years ago...Last edit: Simon Sobisch 2022-09-01