Hi all-

I wanted to leave my cygwin friends with a little help in installing agar on cygwin. It is related to cobol if you want to use guicobol.

Notice in this pattern the current 1.6.0 has funny directory system. You may have to rearrange folders to get this pattern to work.

The directory tree I use so it doesn't complain is:

~/agar-1.6.0
~/agar-1.6.0/agar
put lib include bin files in agar folder.

It had set it up like lib bin include. I extracted those and dumped everything in the plain old agar directory under agar-1.6.0. I did this because of a funny message I got about location and I figured if it is happy with that then, why not?

gcc -Bstatic -o hello -I/home/user/agar-1.6.0 -L/home/usar/agar-1.6.0/agar /home/user/agar-1.6.0/agar/agar-config --cflags hello.c /home/user/agar-1.6.0/agar/agar-config --libs

In case you have bad eyesight, like me, those are backtics and not apostrophes above.

Everything seems to be lining up nicely with cobol, agar, ocesql, postgres and hopefully lastly guicobol.

Lots of people use msys2 etc. but you can use cygwin too. It is a bit of a trial to use msys2 and cygwin on the same system but it can be done too.

" if you have a library named according to the aberrant "lib<name>.lib" convention, it will not be found by an "-l<name>" specification -- if you cannot rename the library, you must use the form "-llib<name>" instead."</name></name></name>

The quoted text above is confusing to me. Some libs are not mingw libs is the problem I ran into before. The other libs can be a microsoft .lib and it might not be compatible.

I started to say something else but i didn't recount it right.

Also, the default shell on mingw is glitchy with postgres but there are other shells available.

thanks,
roboloki

 

Last edit: alien with special powers 2020-10-21