English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 11 November 2017, 22:32   #1
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,120
StormC4 - floating-point number

i get an error when building one out of 10 source code files with "Hardware FPU"
Code:
Compile C source "3D.C" on server <Locale>.
Command: COMPILE -c "3D.C" -o "objects/3D.o"  -nostdinc -nostdinc++ -fvtable-thunks
-I"StormC:include" -I"StormC:00-Projects/include" -DNDEBUG -DGFX_NO_BOOL
-D__SASC -DGFX_DEF_FMATH -Wcomment -Wunknown-pragmas -xc++ -fexceptions
-fno-builtin -fsigned-char -m68020 -m68881 -O2 -Wstrict-prototypes -Wimplicit
-Wbad-function-cast -Wreturn-type -Wno-long-long -Wswitch -Wformat -Wunused
-Wuninitialized -Wconversion

Error: cannot create floating-point number
 File T:T4109B4E0.44, line 22
Error: cannot create floating-point number
 File T:T4109B4E0.44, line 26
C source "3D.C" done.
the source line (!?) in question dosnt matter. i can insert some empty lines,
but error lines stay the same.
any idea anyone?

#1) i found the issue. was something in a include file:
Code:
#ifdef GFX_REAL_FLOAT
typedef float real;
#else
#define GFX_REAL_DOUBLE
typedef double real;
#endif
i did -DGFX_REAL_FLOAT and "real" is now float instead of double.
does build now.

Last edited by emufan; 11 November 2017 at 23:57.
emufan is offline  
AdSense AdSense  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE Assembly dump from point to point? Sim085 support.WinUAE 3 11 April 2017 20:43
Fast floating-point random numbers Leffmann Coders. Tutorials 27 25 August 2016 02:59
Important Facts about Floating Point Numbers Mrs Beanbag Coders. General 2 13 August 2016 22:14
Floating point without FPU oRBIT Coders. Asm / Hardware 13 19 March 2015 00:11
stormc4 help forumbase support.Apps 2 06 March 2006 03:12

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:25.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.13985 seconds with 12 queries