[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Problem with out-of-source build
From: |
Martin Kalbfuß |
Subject: |
Re: [Gm2] Problem with out-of-source build |
Date: |
Sat, 29 May 2010 09:57:42 +0200 |
Hi again,
I tested the behavior a bit more.
I have:
Desktop/
|
+-test/
+-test.mod
gm2 -fmakeall test.mod
inside Desktop works
gm2 -fmakeall ../test.mod
inside test/ does not. The usage of -I and/or -fobject-path doesn't
change anything. So currently, out-of-source builds aren't possible
while using the -fmakeall parameter. So you have to do compilation and
linking in separate steps.
Another point is, that gm2 can't do a simple
gm2 test.mod
It can't find _M2_test_init and _M2_test_finish. You have to use
-fmakeall
gcc test.c
works perfectly and produces a binary.
My compiler version is GNU Modula-2 0.73 (20100312),
Martin
Am Freitag, den 28.05.2010, 17:08 +0200 schrieb Martin Kalbfuß:
> Hi,
>
> I try to build my project with cmake. It didn't work, so I tried it
> myself, invoking the commands myself.
> The problem is the location of the source file test.mod. If it's in the
> working directory, everything runs fine.
> But if not and I have a file path like ../../examples/test.mod It
> doesn't compile. gm2 tells me, that it cannot find _M2_test_init and
> _M2_test_finish
> I tried all combinations of -I and -fobject-path but nothing helped
>
> A working command for example, is:
>
> ++++
> gm2 -fmakeall -fiso -I.:../../Al:../../examples
> -fobject-path=.:../../examples -L../Al -lAl -lalleg-4.4.0 test.mod
>
> with the file test.mod in the current directory
> ++++
>
> But
>
> ++++
> gm2 -fmakeall -fiso -I.:../../Al:../../examples
> -fobject-path=.:../../examples -L../Al -lAl
> -lalleg-4.4.0 ../../examples/test.mod
> ++++
>
> doesn't work.
>
> Any suggestions?
>
> Thanks
>
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gm2