Closed FrancisTheCat closed 11 months ago
Im dumb this is the website repo lol, similar issue in the right repo by someone else already
@FrancisTheCat Meanwhile, here's what you can do on Windows to sidestep the issue:
import win32 "core:sys/windows"
copy_file :: proc(from_path, to_path: string, overwrite_if_exists := true) -> (ok: bool) {
defer free_all(context.temp_allocator)
_from_path := win32.utf8_to_wstring(from_path, context.temp_allocator)
_to_path := win32.utf8_to_wstring(to_path, context.temp_allocator)
return bool(win32.CopyFileW(_from_path, _to_path, bFailIfExists=!overwrite_if_exists))
}
main :: proc() {
success := copy_file("My.dll", "My.dll.bak")
fmt.printf("Copy 'My.dll' to 'My.dll.bak': %v\n", success)
}
I recently tried to use a libc function while also using raylib, but when using a libc procedure, compilation fails with these errors: