[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linking - the second :-)
From: |
Gaius Mulley |
Subject: |
Re: linking - the second :-) |
Date: |
Sat, 06 May 2023 14:31:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
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
- Re: CHAR as FOR loop control variable, (continued)
Re: CHAR as FOR loop control variable, Gaius Mulley, 2023/05/04
Re: CHAR as FOR loop control variable, Gaius Mulley, 2023/05/04