Menu

error libcob.h No such file or directory

Anonymous
2020-04-20
2022-09-01
  • Anonymous

    Anonymous - 2020-04-20

    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.

     
  • Anonymous

    Anonymous - 2022-08-31

    Did you manage to find a solution to this error?

     
  • Vincent (Bryan) Coen

    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.

     
  • Simon Sobisch

    Simon Sobisch - 2022-09-01

    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

Anonymous
Anonymous

Add attachments
Cancel