Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors about Thread Module #3724

Closed
vicuna opened this issue Sep 19, 2002 · 2 comments
Closed

errors about Thread Module #3724

vicuna opened this issue Sep 19, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 19, 2002

Original bug ID: 1397
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,

I am try to use Thread Module through command line (ocaml) so I use the following command:
ocamlmktop -thread -custom -o threadtop threads.cma -cclib -lthreads

I got the following errors:
Error while linking threads.cma(Thread): Reference to undefined global 'Unix'

Or I have another way to run Thread.create under command line?

Thanks

LI Qingliu

<STYLE></STYLE>
Hi,
 
I am try to use Thread Module through command line (ocaml) so I use the following command:
ocamlmktop -thread -custom -o threadtop threads.cma -cclib -lthreads
 
I got the following errors:
Error while linking threads.cma(Thread): Reference to undefined global 'Unix'
 
Or I have another way to run Thread.create under command line?
 
Thanks
 
LI Qingliu


@vicuna
Copy link
Author

vicuna commented Sep 20, 2002

Comment author: administrator

I am try to use Thread Module through command line (ocaml) so I use the =
following command:
ocamlmktop -thread -custom -o threadtop threads.cma -cclib -lthreads

I got the following errors:
Error while linking threads.cma(Thread): Reference to undefined global =
'Unix'

Or I have another way to run Thread.create under command line?

The following should work:

ocamlmktop -thread -custom -o threadtop unix.cma threads.cma

or maybe even

ocamlmktop -thread -o threadtop unix.cma threads.cma

Hope this helps,

  • Xavier Leroy

@vicuna vicuna closed this as completed Sep 20, 2002
@vicuna
Copy link
Author

vicuna commented Sep 21, 2002

Comment author: administrator

Hi,

It can run. But after I run the command, I use the following thing under
ocaml
#Thread.create ;;
I got
Reference to undefined global 'Thread'

Even I use: open Thread ;;
I still got the same error message like above.

What should I do?

Thanks in advance!

LI Qingliu
----- Original Message -----
From: "Xavier Leroy" caml-bugs@pauillac.inria.fr
To: qingliuli@hotmail.com
Cc: caml@inria.fr
Sent: Friday, September 20, 2002 1:19 PM
Subject: Re: errors about Thread Module (#3724)

I am try to use Thread Module through command line (ocaml) so I use the
=
following command:
ocamlmktop -thread -custom -o threadtop threads.cma -cclib -lthreads

I got the following errors:
Error while linking threads.cma(Thread): Reference to undefined global =
'Unix'

Or I have another way to run Thread.create under command line?

The following should work:

ocamlmktop -thread -custom -o threadtop unix.cma threads.cma

or maybe even

ocamlmktop -thread -o threadtop unix.cma threads.cma

Hope this helps,

  • Xavier Leroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant