mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Need -thread option to compile OCaml example (#5440)
				
					
				
			I can compile the OCaml example with `-thread` option at Linux. ``` $ ocaml --version The OCaml toplevel, version 4.05.0 ```
This commit is contained in:
		
							parent
							
								
									442d1d28ea
								
							
						
					
					
						commit
						81b8f397b3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -14,9 +14,9 @@ for the byte-code version.
 | 
			
		|||
If Z3 was installed into the ocamlfind package repository (see
 | 
			
		||||
src/api/ml/README), then we can also compile this example as follows:  
 | 
			
		||||
 | 
			
		||||
ocamlfind ocamlc -o ml_example.byte -package Z3 -linkpkg ml_example.ml
 | 
			
		||||
ocamlfind ocamlc -o ml_example.byte -thread -package Z3 -linkpkg ml_example.ml
 | 
			
		||||
or
 | 
			
		||||
ocamlfind ocamlopt -o ml_example -package Z3 -linkpkg ml_example.ml
 | 
			
		||||
ocamlfind ocamlopt -o ml_example -thread -package Z3 -linkpkg ml_example.ml
 | 
			
		||||
 | 
			
		||||
Note that the resulting binaries depend on the shared z3 library
 | 
			
		||||
(libz3.dll/.so/.dylb), which needs to be in the PATH (Windows), LD_LIBRARY_PATH
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue