Re: old programming on ppc



on Saturday 05 January 2008 2:46 pm, jerry@xxxxxxxxxxxxxxxx (Jerry Heyman)
wrote:

on Saturday 05 January 2008 11:50 am, sacarde@xxxxxxxxx
(sacarde@xxxxxxxxx) wrote:

I try opencobol : result not working

Have you tried to compile the example program using:

$ cob -C hello.cob

This will result in a .c source file that you can then look at.
If you get this far successfully, then the issue is the C compiler,
not open cobol.

I'm going to fire up my linux on powerpc (powermac g3 running YDL 4.0)
and see if I can make open cobol work.

Just finished building/installing open-cobol-1.0 on my YDL 4.0
system:

$ uname -a
Linux pmac.hobbeshollow.com 2.6.8-1.ydl.7 #1 Fri Oct 1 09:28:52 CEST 2004
ppc ppc ppc GNU/Linux
$ ls -l /etc/*release*
-rw-r--r-- 1 root root 37 May 21 2004 /etc/yellowdog-release
$ cat /etc/yellowdog-release
Yellow Dog Linux release 4.0 (Orion)

Open-cobol-1.0 compiled without any issues, and installed perfectly.
I then compiled the same sample I did with the intel version - got
a working executable ('Hello World') and then used the -C option to
see the source code.

$ rpm -qa | grep gcc
gcc-3.3.3-16.ydl.4
libgcc-3.3.3-16.ydl.4
gcc-c++-3.3.3-16.ydl.4

Since I'm successfully working, I do not know what to tell you.


I try gambas: I have segm. fault

what version of linux on powerpc are you running?

'uname -a' or 'cat /etc/*-release'

jerry

jerry
--
// Jerry Heyman | "Software is the difference between
// Amiga Forever :-) | hardware and reality"
\\ // heymanj@xxxxxxx |
\X/ http://www.hobbeshollow.com/jerry.html
.



Relevant Pages

  • Re: .class file source dependency
    ... I change one .java source file. ... In others, the other class is still okay, but the bytecode generated for it will change - the old bytecode won't work, the source code will compile, and the new source code will work. ... public static void main(String... ...
    (comp.lang.java.programmer)
  • Re: Looking for a free basic compiler for DOS
    ... mother of an ide file - and created separate source files for each SUB ... big to compile in one bc step. ... the source for all the SUBS in the same source file. ...
    (comp.lang.basic.misc)
  • Re: disabling parse error in gcc
    ... typedef struct MYSTRUCT{ ... it will compile correctly. ... A header file shall permit multiple inclusion of itself. ... so that a source file containing only TWO #includes of it will compile, ...
    (comp.unix.programmer)
  • Re: A funny yet crazy extreme test on Delphi 7 compiler
    ... The RAM is 1G. ... A project with a major source file names TestCase.pas. ... Delphi can compile crazy functions with 999 parameters. ...
    (borland.public.delphi.non-technical)
  • Re: Summary: translation units, preprocessing, compiling and linking?
    ... > proper, assembly and linking, always in that order. ... that specifies that a file have a particular extension, ... you can call your main source file ... something a source file is if you instruct your compiler to compile it. ...
    (comp.lang.cpp)