Mantis - Cadmium
Erweiterte Problemanzeige
101 general schwerer Fehler immer 2012-07-26 03:31 2013-04-24 13:14
dobesv  
 
normal  
geschlossen 1.4  
nicht reproduzierbar  
keine    
keine  
0000101: Cannot link with a library in Windows due to incorrect path splitting algorithm
When the file path to an ml file uses backslash instead of forward slash OcamlJava doesn't correctly separate the filename from its path. It includes the backslashes in the name and reports an error if that module is later used.

Here's the test case:

> type lib.ml
let x = 5;;

> type exe.ml
print_int Lib.x;;

> C:\Windows\system32\java.exe -Xss8m -jar F:\...\ocamljava-bin-1.4\bin\ocamljava.jar -standalone -c -I %CD% -w yzex -warn-error FDPSU -standalone -o %CD%\lib.cmj %CD%\lib.ml

> C:\Windows\system32\java.exe -Xss8m -jar F:\...\ocamljava-bin-1.4\bin\ocamljava.jar -standalone -a -I %CD% -w yzex -warn-error FDPSU -standalone -o %CD%\lib.cmja %CD%\lib.cmj

> C:\Windows\system32\java.exe -Xss8m -jar F:\...\ocamljava-bin-1.4\bin\ocamljava.jar -standalone -c -I %CD% -w yzex -warn-error FDPSU -standalone -o %CD%\exe.cmj %CD%\exe.ml
File "...\exe.ml", line 1, characters 0-1:
Error: Wrong file naming: lib.cmi contains the compiled interface for
...\lib

Workaround:

Ensure that the last path separator before the file name is a forward slash; this way OcamlJava will correctly split the file name from its parent folder and thus the interface name will match.
Problem-Historie
2012-07-26 03:31 dobesv Neues Problem
2013-04-24 13:14 xclerc Status neu => geschlossen
2013-04-24 13:14 xclerc Lösung offen => nicht reproduzierbar

Zu diesem Problem gibt es keine Notizen.