小编pha*_*ase的帖子

没有为以下模块提供实现:Str

我有一个使用该Str模块的OCaml项目,但在编译时,我收到此错误:

$ make                            
ocaml setup.ml -build                                                    
Finished, 0 targets (0 cached) in 00:00:00.
+ /home/phase/.opam/system/bin/ocamlfind ocamlopt -g -linkpkg src/objects.cmx src/golf.cmx -o src/golf.native
File "_none_", line 1:                                                   
Error: No implementations provided for the following modules:            
         Str referenced from src/golf.cmx                                
Command exited with code 2.
Compilation unsuccessful after building 7 targets (6 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' src/golf.native -tag debug' terminated with error code 10")
Makefile:7: recipe for target 'build' failed
make: *** [build] Error 1
Run Code Online (Sandbox Code Playgroud)

这是一个Oasis项目,包含以下_oasis文件: …

ocaml oasis

7
推荐指数
1
解决办法
2669
查看次数

HTML 制作您自己的 <script type="text/language">?

加入了 Javascript text/javascript,Coffeescript 也支持它,但我想知道有没有办法制作我自己的?我想制作一个任何人都可以做的 Golfscript 解释器,<script type="text/golfscript">它会通过解释器进行。

html javascript text

4
推荐指数
1
解决办法
918
查看次数

LLVM IR打印一个数字

我正在尝试打印一个数字,但我收到错误,说我的打印功能错误:

define i32 @main() {
entry:
  %d = shl i32 2, 3
  %call = call i32 (i8*, ...)* @printf(i8* %d)
  ret i32 1
}

declare i32 @printf(i8*, ...)
Run Code Online (Sandbox Code Playgroud)

这是错误:

Error in compilation: /bin/this.program: llvm.ll:4:44: error: '%d' defined with type 'i8'
  %call = call i32 (i8*, ...)* @printf(i8* %d)
                                       ^
Run Code Online (Sandbox Code Playgroud)

还有其他一些打印功能可以解决这个问题吗?

assembly bytecode llvm

2
推荐指数
1
解决办法
2376
查看次数

标签 统计

assembly ×1

bytecode ×1

html ×1

javascript ×1

llvm ×1

oasis ×1

ocaml ×1

text ×1