Can you please help me compile Hope.
I'm trying to compile with VS Express 2010, it compiles without error messages but if I run the program I get the error 'can't read module 'standard' so there's a problem with hopelib.h

What is the proper way to specify the directory?

Thank for any info.

I really like Hope and would like to also enhance it. I tried Hopeless, but I can't run any application with it (using read) I always get an error that a temporary directory cannot be read.

Again thanks for any help.

Markos

12 Mar 2012 17:58

Shaos

Admin

Joined: 09 Jan 2003 00:22Posts: 17240Location: Colorado

I'm surprised that you were able to compile it in VisualStudio Source code expects to be compiled in POSIX environment (for Windows I tested it in CYGWIN)
If VS Express supports POSIX API now then you can try to put all libs including Standard.hop in the same folder where hopless.exe is located and where you launch it

I'm surprised that you were able to compile it in VisualStudio Source code expects to be compiled in POSIX environment (for Windows I tested it in CYGWIN)If VS Express supports POSIX API now then you can try to put all libs including Standard.hop in the same folder where hopless.exe is located and where you launch it

Thank you for the reply.

I got a little further yet. Now it compiles and Hope is evaluating expressions.

What I did was in module.c there's a function called mod_read();

Hope opens the 'Standard.hop' file in that function so I hard coded the path to the 'Standard.hop' file and then copied the path to the variable 'file' just simply using strcpy();

It's the brute force approach but it works for now.

I haven't tested file input or output yet and I think that is the next problem.

So it's now compiling in VS without Cygwin, just a Windows .exe. There are just some preprocessor defines that need to be set such us; msdos, HOPELIB, etc...

I like Hope because it a simple, small functional language. A good way to learn functional programming. Haskell is so large and there are so many ways to do everything, it's takes much time to learn it.

15 Mar 2012 16:17

Shaos

Admin

Joined: 09 Jan 2003 00:22Posts: 17240Location: Colorado

Files should work just fine because it uses standard fopen to open files

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum