[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Re: still won't compile and link
From: |
Gaius Mulley |
Subject: |
[Gm2] Re: still won't compile and link |
Date: |
Wed, 02 Mar 2011 14:28:47 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Gaius Mulley <address@hidden> writes:
>
> Hi,
>
> it is probably easier to use make, as in:
>
> build-4.1.2/gcc/gm2/examples/ncurses$ make pre-install
> $ ./a.out
>
> You can see what commands the 'make' spawns by:
>
> build-4.1.2/gcc/gm2/examples/ncurses$ make pre-install -n
>
> it will proceed to compile all dependencies and finally performs the
> link. On my system 'make' spawns the following internal processes:
>
>
> rm -f *.o a.out *_m2.cpp
> ../../../xgm2 -B../../../x
> -fmake-I=../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses \
>
> -I../../gm2-libs-coroutines:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/../../gm2-libs-coroutines:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/../../gm2-compiler:../../gm2-libs:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/../../gm2-libs:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/../../gm2-libs-iso
> \
> -fmakeall -g
> ../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/testwin.mod -lncurses -lpth
>
>
> which results in the creation of an ./a.out
make post-install is slightly shorter - and probably of more use:
$ make post-install
$ gm2 -g -fmake-I=../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses \
-flibs=pim-coroutine -fmakeall \
-I../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/../../gm2-libs-coroutines:../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses
\
../../../../../gcc-4.1.2/gcc/gm2/examples/ncurses/testwin.mod -lncurses -lpth
regards,
Gaius