gm2
[Top][All Lists]
Advanced

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

Re: linking - the second :-)


From: Michael Riedl
Subject: Re: linking - the second :-)
Date: Sat, 6 May 2023 16:09:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

Gaius,

you where right - removing the "-I /usr/local/gm2/lib/gcc/i686-pc-linux-gnu/13.1.0/m2/m2iso" fixed the issue.

Thanks

Michael

Am 06.05.23 um 15:31 schrieb Gaius Mulley:
Michael Riedl <udo-michael.riedl@t-online.de> writes:

Gaius,

after having compiled my libraries I come to the next (hopefully small) issue:

Within the libraries (e.g. libm2iso) objects have a prefix "m2iso_"

nm libm2iso.so | grep SWholeIO_WriteCard
00024220 T m2iso_SWholeIO_WriteCard

and the linker now states

SizesReal.mod:(.text+0xb1): Warning:undefined reference to »SWholeIO_WriteCard«

I found out that I need to compile the main module with "-fscaffold-main" to 
get rid

of the error having no "main" - but here I am a bit lost at the moment.


Gruß

Michael
Hi Michael,

ah yes the gm2-13 now uses named paths (which is prefixed to the library
procedure).  How is SizesReal.mod compiled?  At a guess does it have an explicit
-Ipath/to/m2/m2iso?  If so then this would remove the named path.  If
the guess is wrong any chance you can post the command line used to
generate SizesReal.o

The following url is an example of creating a shared library with
gm2-13, which might be of use?

    https://github.com/gaiusm/pge

regards,
Gaius



reply via email to

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