------- Forwarded Message -------
From: Jim McNamara jmcnamara10001@proton.me
Date: On Friday, October 11th, 2024 at 7:11 PM
Subject: Fw: [gnucobol:discussion] in linking program Program Files getting cut off
To: [gnucobol:discussion]help@discussion.gnucobol.p.re.sourceforge.net
Hi-
almost forgot....
And i run with dbname =
testdb@localhost:5432 in one of my files I use that they provided.
$> ./INSERTTBL.exe
*** INSERTTBL STARTED ***
libcob: error: module 'OCESQLConnect' not found$>
------- Forwarded Message -------
From: Jim McNamara jmcnamara10001@proton.me
Date: On Friday, October 11th, 2024 at 7:11 PM
Subject: Fw: [gnucobol:discussion] in linking program Program Files getting cut off
To: [gnucobol:discussion] help@discussion.gnucobol.p.re.sourceforge.net
Hi-
almost forgot....
And i run with dbname =
testdb@localhost:5432 in one of my files I use that they provided.
$> ./INSERTTBL.exe
*** INSERTTBL STARTED ***
libcob: error: module 'OCESQLConnect' not found$>
------- Forwarded Message -------
From: J McNamara masticon@users.sourceforge.net
Date: On Friday, October 11th, 2024 at 7:06 PM
Subject: [gnucobol:discussion] in linking program Program Files getting cut off
To: [gnucobol:discussion] help@discussion.gnucobol.p.re.sourceforge.net
Hi-
Do you see the 'executing' section down below how it cuts Program and Files off I can't seem to get the right display for the executing session below.
Any ideas?
I think I am close ... one never knows.
I uncommented the English characters and deleted the Japan chars.
This is not related to the linking, but to the parameters used for that.
Under "executing" it just line-wraps on the space character. Feel free to work on a patch to cobc/cobc.c to cater for quoting (I won't work on this cosmetic issue).
Hi-
Do you see the 'executing' section down below how it cuts Program and Files off I can't seem to get the right display for the executing session below.
Any ideas?
I think I am close ... one never knows.
I uncommented the English characters and deleted the Japan chars.
thanks,
jim
$> unset CPPFLAGS
$> unset LDFLAGS
$> BASEPATH="/cygdrive/c/Program Files/PostgreSQL/17"
$> export CPPFLAGS="-I'$BASEPATH/include'"
$> export LDFLAGS="-L'$BASEPATH/lib'"
$> cobc -v -o INSERTBL INSERTTBL.cob "-I/cygdrive/c/Program Files/PostgreSQL/17/include" "-I/cygdrive/c/Program Files/PostgreSQL/17/include" -locesql
cobc (GnuCOBOL) 3.2.0
Built Oct 09 2024 07:56:37 Packaged Jul 28 2023 17:02:56 UTC
C version "13.3.1 20241004"
loading standard configuration file 'default.conf'
command line: cobc -v -o INSERTBL -I/cygdrive/c/Program Files/PostgreSQL/17/include -I/cygdrive/c/Program Files/PostgreSQL/17/include -locesql INSERTTBL.cob
preprocessing: INSERTTBL.cob -> /tmp/cob372_0.cob
return status: 0
parsing: /tmp/cob372_0.cob (INSERTTBL.cob)
return status: 0
translating: /tmp/cob372_0.cob -> /tmp/cob372_0.c (INSERTTBL.cob)
executing: gcc -pipe -I/usr/local/include -Wno-unused -fsigned-char
-Wno-pointer-sign -I"/cygdrive/c/Program
Files/PostgreSQL/17/include" -I"/cygdrive/c/Program
Files/PostgreSQL/17/include" -shared -DDLL_EXPORT -DPIC
-Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-auto-image-base -o "INSERTBL.dll"
"/tmp/cob372_0.c" -L/usr/local/lib -lcob -l"ocesql"
return status: 0
$>
Sent with Proton Mail secure email.
Hi-
almost forgot....
And i run with dbname =
testdb@localhost:5432 in one of my files I use that they provided.
$> ./INSERTTBL.exe
*** INSERTTBL STARTED ***
libcob: error: module 'OCESQLConnect' not found$>
Sent with Proton Mail secure email.
------- Forwarded Message -------
From: J McNamara masticon@users.sourceforge.net
Date: On Friday, October 11th, 2024 at 7:06 PM
Subject: [gnucobol:discussion] in linking program Program Files getting cut off
To: [gnucobol:discussion] help@discussion.gnucobol.p.re.sourceforge.net
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
cobc -x -locesql INSERTTBL.cob
cobc -v -o INSERTBL INSERTTBL.cob "-I/cygdrive/c/Program Files/PostgreSQL/17/include" "-I/cygdrive/c/Program Files/PostgreSQL/17/include" -locesql
and in /usr/local/lib
i did:
ln -s cygocesql-0.dll ocesql.dll
okay that is some more of my misadventures.
please assist if you know what in tarnation i may be doing wrong.
thanks,
jim
Sent with Proton Mail secure email.
------- Forwarded Message -------
From: Jim McNamara jmcnamara10001@proton.me
Date: On Friday, October 11th, 2024 at 7:11 PM
Subject: Fw: [gnucobol:discussion] in linking program Program Files getting cut off
To: [gnucobol:discussion] help@discussion.gnucobol.p.re.sourceforge.net
cobc -x -v -o INSERTBL INSERTTBL.cob "-I/cygdrive/c/Program Files/PostgreSQL/17/include" -L"/cygdrive/c/Program Files/PostgreSQL/17/lib" -lpq -locesql
I am working with AI and I got this far but it says :
libcob: error: module 'OCESQLConnect' not found
thanks
Sent with Proton Mail secure email.
------- Forwarded Message -------
From: J McNamara masticon@users.sourceforge.net
Date: On Friday, October 11th, 2024 at 7:18 PM
Subject: [gnucobol:discussion] Re: in linking program Program Files getting cut off
To: [gnucobol:discussion] help@discussion.gnucobol.p.re.sourceforge.net
This is not related to the linking, but to the parameters used for that.
Under "executing" it just line-wraps on the space character. Feel free to work on a patch to cobc/cobc.c to cater for quoting (I won't work on this cosmetic issue).