David Menendez wrote:

*.hi files are analogous to C's *.h files, except that the compiler
generates them.

Thanks, I learned something new today.

You mentioned later that you don't have any *.hi files, so I'm guessing
you didn't compile RC4.hs before you compiled prng.hs.

Correct. I didn't know I had to :-)

If I'm right, you need to do something like this first:

$ nhc98 -c RC4.hs

Okay, I did that and I see a .hi file now. Thanks!

Once that step is done, you should be able to compile prng.hs.

Interestingly, I get a different error now:

$ nhc98 prng.hs -o prng
Undefined                       first referenced
 symbol                             in file
FN_RC4_46rand                       ./prng.o
ld: fatal: Symbol referencing errors. No output written to prng
collect2: ld returned 1 exit status


Oh well, I'll figure this out later. For now I'll just have everything in one big file. At least that compiles cleanly.


Incidentally, if you aren't already familiar with "make" or some other
build system, I strongly recommend looking into one. Even for a project
with only two files, having a build system keep track of compilation
dependencies makes things a lot less tedious.

Ok. I played with make once upon a time. Thanks for the advice.

Cheers,
Daniel.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to