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

Fix for windows and v0.6 #134

Merged
merged 1 commit into from
May 17, 2017
Merged

Fix for windows and v0.6 #134

merged 1 commit into from
May 17, 2017

Conversation

odow
Copy link
Member

@odow odow commented May 16, 2017

Passes tests on Windows Julia-0.5 and Julia-0.6

@mlubin mlubin merged commit 268c140 into jump-dev:master May 17, 2017
@odow odow deleted the windows06 branch May 17, 2017 01:36
@tkelman
Copy link
Contributor

tkelman commented Jul 13, 2017

why does the call to esc need to be version conditional at all?

@odow
Copy link
Member Author

odow commented Jul 13, 2017

I just copied jump-dev/Xpress.jl@6fe4193

@odow
Copy link
Member Author

odow commented Jul 13, 2017

Without the conditional (i.e. just the v0.6 branch) I get

julia> using CPLEX
INFO: Recompiling stale cache file C:\Users\odow003\.julia\lib\v0.5\CPLEX.ji for
 module CPLEX.
ERROR: LoadError: LoadError: syntax: ccall argument types must be a tuple; try "
(T,)"
 in include_from_node1(::String) at .\loading.jl:488 (repeats 2 times)
 in macro expansion; at .\none:2 [inlined]
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\Users\odow003\.julia\v0.5\CPLEX\src\cpx_env.jl, in expression s
tarting on line 1
while loading C:\Users\odow003\.julia\v0.5\CPLEX\src\CPLEX.jl, in expression sta
rting on line 85
ERROR: Failed to precompile CPLEX to C:\Users\odow003\.julia\lib\v0.5\CPLEX.ji.
 in compilecache(::String) at .\loading.jl:593
 in require(::Symbol) at .\loading.jl:393

@tkelman
Copy link
Contributor

tkelman commented Jul 13, 2017

@mlubin do I remember you filing an issue about this? Wondering if it was JuliaLang/julia#15850 or JuliaLang/julia#18754 that caused the issue...

@mlubin
Copy link
Member

mlubin commented Jul 13, 2017

I can't find any issue I filed about this.

@mlubin
Copy link
Member

mlubin commented Jul 14, 2017

This might be the discussion you were remembering: https://discourse.julialang.org/t/macro-that-uses-ccall-in-julia-0-6-0/2639

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

Successfully merging this pull request may close these issues.

3 participants