![]() |
![]() |
#1 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
SAS/C: Undefined symbols
I've been playing around with integers without problem but now I want to play with floats I'm now being told I've got undefined symbols and it's asking me to enter a DEFINE value of which I've got no idea. All I know is that no matter what I enter the program fails.
At the end of compiling (after I've given it junk info) it does say: Code:
Warning 625: Proper math library has not been included (The manual I'm following is the "Amiga Shopper Complete Amiga C" which was given away with a free version of DICE although I'm using SAS/C v6.58 instead so if anyone knows of a much better source of learning material - I'd welcome it with open arms) Last edited by Yesideez; 12 February 2014 at 14:44. |
![]() |
![]() |
#2 |
move $dff006,$dff180
Join Date: Feb 2014
Location: USA
Posts: 66
|
|
![]() |
![]() |
#3 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
Thanks for the links but any chance a quick explanation of what I need to do to be able to use floats please?
EDIT: Thanks for that first HTML reference manual/guide - amazing read ![]() Last edited by Yesideez; 12 February 2014 at 15:56. |
![]() |
![]() |
#4 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
You need to specify a math model, and possibly a math library depending on what model and what functionality you use. I think the command line option is "MATH=model" for the compiler, and "LIB library" for the linker, but I can't remember what to specify.
It's easier if you use scsetup to set up a project, and then use scoptions to configure it. EDIT: try MATH=standard and LIB scm.lib, it should use the software-based math library that runs on all machines. |
![]() |
![]() |
#5 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
I just typed "scoptions" and nothing happened. Tried it with a ? on the end and the template makes no sense without a manual.
|
![]() |
![]() |
#6 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
While I'm extremely appreciate of the assistance I'm receiving here, SAS/C is by no means simple.
Using the instructions on http://www.pcguru.plus.com/tutorial/screens.html to try and open a screen, I've typed everything in exactly and this is what I get: ![]() |
![]() |
![]() |
#7 |
move $dff006,$dff180
Join Date: Feb 2014
Location: USA
Posts: 66
|
it's "scopts"
|
![]() |
![]() |
#8 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,051
|
This is a horrible piece of a tutorial. Full of mistakes. Most information given there is just wrong.
CloseScreen needs a pointer to the screen as returned by OpenScreen and not the NewScreen pointer. OpenScreenTagList takes a pointer to a taglist. OpenScreenTags is the function which uses inline tags. |
![]() |
![]() |
#9 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
See, that's what I don't understand. I can see some of the errors in that tutorial and I much PREFER TO USE ASSEMBLER BUT IT TAKES SO MUCH DAMN TIME TO MAKE anything (excuse damn caps key bloody thing) and some routines need to be coded from scratch.
I'm half tempted to finish expanding my 1200 and use it for a games machine. Anyone used GCC and think much of it? That's been suggested to me but if it's as user unfriendly as SAS/C I don't think I'll bother. (Hate this mix of diazepam/morphine and naproxen) |
![]() |
![]() |
#10 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
You don't have to do everything via command line. Run scsetup to create a project template, open your project drawer and click on scoptions, click on Code Options, and click on NoMath until it says Math=STANDARD, click save, and you're done.
I linked a complete SAS/C 6.58 install in another thread of yours, and it contains all the SAS/C help-files in Amigaguide format. I think I also included the SAS/C 6.50 manual in it. |
![]() |
![]() |
#11 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
I've run scsetup and nothing happens.
|
![]() |
![]() |
#12 |
Registered User
Join Date: Oct 2012
Location: Germany
Posts: 585
|
Did you clone the SAS-C example project as a starting point? You will get all the necessary icons and tools, if you do.
Reading the manual is also recommended. ![]() |
![]() |
![]() |
#13 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
To be honest - no idea. I'm a typical bloke and I dived straight in and I've just started reading the manual now.
I tried SnoopDOS to see if scsetup needs something it can't find and nothing flagged up but I did try this in AmigaDOS... Code:
makedir tester scsetup tester |
![]() |
![]() |
#14 | |
Registered User
Join Date: Oct 2012
Location: Germany
Posts: 585
|
Quote:
![]() |
|
![]() |
![]() |
#15 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
Aye, I've been reading the manual for a little while now and it's amazing what I've learnt so far.
Typical bloke thing, eh? Manuals as the last resort ![]() While I'm on these pain killers due to severe muscle spasm taking me out of work for a week this is the ideal thing to relieve boredom. I tried watching a film and the diazepam knocked me out and I slept all day. This is keeping my mind active ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AsmOne: Undefined symbol | copse | Coders. Asm / Hardware | 2 | 02 April 2012 01:41 |
Undefined symbol bsr.b init_bitmaps | VoltureX | Coders. General | 12 | 13 November 2011 16:11 |
Sas C 6.58 | AmiCoder | request.Apps | 3 | 06 February 2010 01:19 |
Settlers/copy protection Symbols | macpegg | support.Games | 8 | 27 February 2009 05:23 |
Hardware symbols includes like cia.i | Photon | Coders. General | 6 | 10 March 2006 23:48 |
|
|