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

Windows XP error: 'CreateSymbolicLinkW' not found in [kernel32.dll] #6

Closed
ferfebles opened this issue Nov 3, 2015 · 2 comments
Closed

Comments

@ferfebles
Copy link

Error when requiring win32/file. It seems that "CreateSymbolicLinkW (and possibly others) are not supported in Windows XP" rust-lang/rust#11950.

C:\>irb
irb(main):001:0> require 'win32/file'
FFI::NotFoundError: Function 'CreateSymbolicLinkW' not found in [kernel32.dll]
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ffi-1.9.10-x86-mingw32/lib/ffi/library.rb:261:in `attach_function'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file/functions.rb:12:in `attach_pfunc'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file/functions.rb:18:in `<module:Functions>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file/functions.rb:3:in `<module:File>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file/functions.rb:2:in `<module:Windows>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file/functions.rb:1:in `<top (required)>'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file.rb:3:in `require_relative'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/win32-file-0.8.0/lib/win32/file.rb:3:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from (irb):1
        from C:/Ruby200/bin/irb:12:in `<main>'
@djberg96
Copy link
Collaborator

djberg96 commented Nov 3, 2015

@ferfebles Yeah, I don't really support Windows XP, sorry. MS dropped support already.

@ferfebles
Copy link
Author

Yes, I only have to convince my boss to reinstall our XPs with Linux :-(
Once again, thanks for your help.

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

No branches or pull requests

2 participants