bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Re: Bug Report (Matt Young)


From: Roger While
Subject: [open-cobol-list] Re: Bug Report (Matt Young)
Date: Tue Feb 14 23:56:06 2006

Matt, firstly fix your source program so it has a terminating
new line.
Secondly, the linker warning is fixed in the 0.33 prerelease
available here :
http://www.sim-basis.de/open-cobol-0.33.tar.gz
(The problem was fixed some time ago and was caused by
 not specifying PIC options when producing a module).

Note using this, when you compile without either the
"-x" or "-m" option (see "cobc --help"), you get a warning
telling you to specify one of these. The default, at the moment,
is still to create an executable. This WILL change before the
0.33 official release where we will default to creating a module.
I wanted to give people time to possibly change any compile
scripts that produce executables.
As stated many times, I recommend that ALL application
programs be compiled as modules ("-m") and the main
programs executed with "cobcrun PROG".
(Sergey, Jose - There is still the problem of upper/lower
 case P-ID/ENTRY entry points and P-ID not equal source name.
 Some non-activated code for this is in place.)

Roger



Matt wrote :

I did that and had the following error:
cobc -m hashsub.cbl
hashsub.cbl:38: warning: file unterminated by a newline
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.

altho it did create a hashsub.so file
Cheers,
Matt Young
address@hidden
GPG Public Key: http://youngdev.net/?page=gpg

Roger While wrote:
> Add the "-m" option when compiling.
>
> Roger
>
>> I have a (possible) bug and I was hoping someone could help me with it.
>> I am attempting to compile a subprogram called hashsub.cbl.  No matter
>> what I do, I cannot compile with the using clause on the procedure
>> division.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]