gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] error compiling cobol code.


From: gary_
Subject: Re: [open-cobol-list] error compiling cobol code.
Date: Thu Aug 29 17:26:01 2002

On Thu, 29 Aug 2002 14:11:48 -0700, Mike McLean <address@hidden>
wrote:

>I'm running Open-Cobol 0.9.7 on debian linux.  I've got some cobol code 
>that was written under merant's mainframe express and when I try to 
>compile it with open-cobol it fails.
>
>This is what it gives me:
>
>address@hidden:~/cobol/LIBRARYV/PROGRAMS$ cobc VIPROGA.CBL
>/tmp/cobszksbf.c:253: warning: unknown escape sequence `\m'
>/tmp/cobszksbf.c:253: warning: unknown escape sequence `\l'
>/tmp/cobszksbf.c:288: warning: unknown escape sequence `\m'
>/tmp/cobszksbf.c:288: warning: unknown escape sequence `\l'
>/tmp/cobszksbf.c:288: warning: unknown escape sequence `\D'
>/tmp/cobszksbf.c:288: warning: unknown escape sequence `\D'
>/usr/lib/crt1.o: In function `_start':
>/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
>collect2: ld returned 1 exit status
>
>
>Any help is appreciated
>
>Mike

You need to add the -main switch to cobc when compiling your main (or
indeed only) cobol module.

As for the warnings, who knows if they're important but the switch
should solve your link error.


reply via email to

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