Question

I am working through SICP using Dr Scheme.

How do I load external libraries in Dr Scheme? Say I want to use Math library then how do I ask Dr Scheme to load the particular library?

I tried with the following: (require (lib "math.ss"))

Got the following error: reference to undefined identifier: require

I have chosen R5RS as the language.

Was it helpful?

Solution

Change the language to Pretty Big. 'require' is not an R5RS feature.

OTHER TIPS

Use this for r5rs:

(#%require (lib "math.ss"))

I don't know how to do it in R5RS, but it works under the Pretty Big language. Will that be good enough for your assignments?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top