Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
49 user(s) are online (41 user(s) are browsing Forums)

Members: 3
Guests: 46

skynet, NinjaCyborg, beworld, more...

Support us!

Headlines

 
  Register To Post  

Math link library for gcc
Just can't stay away
Just can't stay away


See User information
Hello,
in porting Gui4Cli to OS4 i just observed that a calculator written in Gui4Cli language is not working any more (eg 1/3 = 0)

I did use with gcc the -lm option since -lmieee (used for 68k) does not seem to exist in my system.

What am i supposed to do ?

Thanks for your help


Joseph


Edited by JosDuchIt on 2009/11/13 10:10:35
Go to top
Re: Math link library for gcc
Just popping in
Just popping in


See User information
@JosDuchIt

Use "-lm" only. For PPC there is no difference between FPU and non-FPU math libs, because all supported PPCs have an FPU.

Go to top
Re: Math link library for gcc
Just can't stay away
Just can't stay away


See User information
@tboeckel

This is what i used
gcc guis:Dev/G4C_Test/guiNotCleaned.c -xc -gstabs -lauto -lm -ldebug -o DuchID:G4T
Is there something wrong here?

The calculator worked OK when the source was compiled for 68k using -lmieee

Joseph

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
6 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project