Re: Compilation succeeded, but uses GPC don't work

Waldek Hebisch <[email protected]> Sat, 6 Mar 2021 20:51:37 +0100
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
On Sat, Mar 06, 2021 at 02:26:28PM -0500, Paul Dufresne wrote:
> Ok, I'd like to report that with the patch you sent me privately, I was able to compile https://github.com/hebisch/gpc=20
> 
> combined with ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-core-3.4.6.tar.bz2 using Ubuntu 20.10 compiler:
>
<snip> 
> And now I can:
> 
> paul@jacko:~/gpc$ rm a.out hello
> 
> paul@jacko:~/gpc$ gpc -o hello ../gpc2/gcc-3.4.6/gcc/p/demos/hello.pas 
> 
> paul@jacko:~/gpc$ ls -lh
> 
> total 548K
> 
> -rwxrwxr-x 1 paul paul 546K mar?? 6 14:21 hello
> 
> paul@jacko:~/gpc$ ./hello
> 
> Hello, world.
> 
> paul@jacko:~/gpc$ gpc ../gpc2/gcc-3.4.6/gcc/p/demos/readdirdemo.pas 
> 
> ../gpc2/gcc-3.4.6/gcc/p/demos/readdirdemo.pas:31: erreur: module/unit interface `GPC' could not be imported
> 

Add '--automake' option to comman line.  Or read abut 'gp' utility.
Probably we should put this in the FAQ.

-- 
                              Waldek Hebisch