The tricks I found out are that you need to put a host variable in the ./compile like this:
./configure --host=i686-pc-cygwin
first before configure, you have to set your 32 bit gcc and g++ like this:
$ export CXX=i686-pc-cygwin-g++.exe
$ export CC=i686-pc-cygwin-gcc.exe
Also before configure,
export CPPFLAGS="-I/usr/include"
export LDFLAGS="-I/usr/lib"
You can run both a 32 and 64 bit on cygwin and they coexist.
So the question I found interesting is that how long will 32 bit be around?
If you try to build as 64 bit it complains the compiler is not working which isnt true. It is, just not 64 bit.
They say with ARM it will start taking more 32 bit compatibility away but I think there is an emulator that might bet built into windows for backwards compability. I read that I am good until 2023 which is good enough for this because I am just fooling around.
I hope that helps someone who wants to put ocesql on cygwin.
Also, it is one more piece to my plan to run a gui from guicobol and persist it to a db from windows. The guicobol creator frederico is running on windows 10 so I switched from linux because I'd like to use a screen builder to capture the data.
I will try the other db programs like esql further down the road with guicobol.
Have a cool week,
roboloki
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI all-
I made some progress on ocesql on cygwin.
The tricks I found out are that you need to put a host variable in the ./compile like this:
./configure --host=i686-pc-cygwin
first before configure, you have to set your 32 bit gcc and g++ like this:
$ export CXX=i686-pc-cygwin-g++.exe
$ export CC=i686-pc-cygwin-gcc.exe
Also before configure,
export CPPFLAGS="-I/usr/include"
export LDFLAGS="-I/usr/lib"
You can run both a 32 and 64 bit on cygwin and they coexist.
So the question I found interesting is that how long will 32 bit be around?
If you try to build as 64 bit it complains the compiler is not working which isnt true. It is, just not 64 bit.
They say with ARM it will start taking more 32 bit compatibility away but I think there is an emulator that might bet built into windows for backwards compability. I read that I am good until 2023 which is good enough for this because I am just fooling around.
I hope that helps someone who wants to put ocesql on cygwin.
Also, it is one more piece to my plan to run a gui from guicobol and persist it to a db from windows. The guicobol creator frederico is running on windows 10 so I switched from linux because I'd like to use a screen builder to capture the data.
I will try the other db programs like esql further down the road with guicobol.
Have a cool week,
roboloki