[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs in Compiling Archimedes
From: |
???? |
Subject: |
Re: Bugs in Compiling Archimedes |
Date: |
Tue, 15 Sep 2020 12:32:41 +0800 |
Hi,
I finally figured out the solution as follows.
The codes like
inline real MM2(real x,real a,real b)
Must all be changed to
real MM2(real x,real a,real b);
inline real MM2(real x,real a,real b)
And then I succeeded to compile Archimedes.
The attachment contains the fixed codes, in case needed.
Regards??
Phoenix
------------------ Original ------------------
From: "????";<phoenix_ao@qq.com>;
Send time: Tuesday, Sep 15, 2020 10:42 AM
To: "bug-archimedes"<bug-archimedes@gnu.org>;
Subject: Bugs in Compiling Archimedes
Hi,
I want to learn to use Archimedes. But when compiling Archimedes(2.0.1) both in Debian10 and in Windows10, I got the same error as follows.
D:\archimedes\src> gcc -lm archimedes.c -o archimedes
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa422): undefined reference to `rnd'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa585): undefined reference to `rnd'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa7c3): undefined reference to `rnd'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa857): undefined reference to `rnd'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa884): undefined reference to `rnd'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xa902): more undefined references to `rnd' follow
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xeca5): undefined reference to `creation'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xee54): undefined reference to `creation'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xf003): undefined reference to `creation'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0xf1b2): undefined reference to `creation'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x12e8b): undefined reference to `MM2'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x12edc): undefined reference to `MM2'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x13251): undefined reference to `MM2'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x132a2): undefined reference to `MM2'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x155df): undefined reference to `MM2'
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Ph-Work\AppData\Local\Temp\cc9gF730.o:archimedes.c:(.text+0x15630): more undefined references to `MM2' follow
collect2.exe: error: ld returned 1 exit status
I tried to search in the internet but found no solution. Could you help?
Regards!
Phoenix
archimedes-2.0.1.7z
Description: Binary data