# Error Precompiling AmplNLWriter

**URL:** <https://discourse.julialang.org/t/error-precompiling-amplnlwriter/15836>\
**Category:** Optimization (Mathematical)\
**Created:** [October 3, 2018, 5:41pm UTC](https://discourse.julialang.org/t/error-precompiling-amplnlwriter/15836 "2018-10-03T17:41:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muriloasouza](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/muriloasouza/32/4650_2.png) [@muriloasouza](https://discourse.julialang.org/u/muriloasouza)\
**Post date:** [October 3, 2018, 5:41pm UTC](https://discourse.julialang.org/t/error-precompiling-amplnlwriter/15836/1 "2018-10-03T17:41:42Z")

</div>

I’m starting to use Julia 1.0.1 today. I saw that the CouenneNL package only works on 0.6, so i went back to using the AmplNLWriter package.

```julia
julia> Pkg.add("AmplNLWriter")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
 Resolving package versions...
 Installed AmplNLWriter ─ v0.4.0
  Updating `C:\Users\Muril\.julia\environments\v0.7\Project.toml`
  [7c4d4715] + AmplNLWriter v0.4.0
  Updating `C:\Users\Muril\.julia\environments\v0.7\Manifest.toml`
  [7c4d4715] + AmplNLWriter v0.4.0

```

Then, when i tried to run my code, i got this error:

```julia
[Info: Precompiling AmplNLWriter [7c4d4715-977e-5154-bfe0-e096adeac482]
ERROR: LoadError: syntax: cannot juxtapose string literal
Stacktrace:
 [1] include at .\boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at .\loading.jl:1038
 [3] include(::Module, ::String) at .\sysimg.jl:29
 [4] top-level scope at none:2
 [5] eval at .\boot.jl:319 [inlined]
 [6] eval(::Expr) at .\client.jl:399
 [7] top-level scope at .\none:3
in expression starting at C:\Users\Muril\.julia\packages\AmplNLWriter\XNKKb\src\AmplNLWriter.jl:585
ERROR: LoadError: Failed to precompile AmplNLWriter [7c4d4715-977e-5154-bfe0-e096adeac482] to C:\Use
rs\Muril\.julia\compiled\v0.7\AmplNLWriter\cWqSF.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] macro expansion at .\logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1185
 [4] macro expansion at .\logging.jl:311 [inlined]
 [5] _require(::Base.PkgId) at .\loading.jl:941
 [6] require(::Base.PkgId) at .\loading.jl:852
 [7] macro expansion at .\logging.jl:311 [inlined]
 [8] require(::Module, ::Symbol) at .\loading.jl:834
 [9] include_string(::Module, ::String, ::String) at .\loading.jl:1002
 [10] (::getfield(Atom, Symbol("##128#133")){String,String,Module})() at C:\Users\Muril\.julia\packa
ges\Atom\Fha1N\src\eval.jl:120
 [11] withpath(::getfield(Atom, Symbol("##128#133")){String,String,Module}, ::String) at C:\Users\Mu
ril\.julia\packages\CodeTools\hB4Hy\src\utils.jl:30
 [12] withpath at C:\Users\Muril\.julia\packages\Atom\Fha1N\src\eval.jl:46 [inlined]
 [13] #127 at C:\Users\Muril\.julia\packages\Atom\Fha1N\src\eval.jl:117 [inlined]
 [14] hideprompt(::getfield(Atom, Symbol("##127#132")){String,String,Module}) at C:\Users\Muril\.jul
ia\packages\Atom\Fha1N\src\repl.jl:84
 [15] macro expansion at C:\Users\Muril\.julia\packages\Atom\Fha1N\src\eval.jl:116 [inlined]
 [16] (::getfield(Atom, Symbol("##126#131")){Dict{String,Any}})() at .\task.jl:85
in expression starting at C:\Users\Muril\Desktop\Murilo\UFPE\Dissertação\Julia\Arquivos Feitos\otimi
zação_sistema_18_barras.jl:2

```

Btw, im fixing everything i can in my code on version 0.7, before really moving into 1.0.1. I saw somewhere in the internet, that if we get errors in 1.0.1, we should go to 0.7 to see warnings about those errors and how to fix them.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [October 3, 2018, 6:58pm UTC](https://discourse.julialang.org/t/error-precompiling-amplnlwriter/15836/2 "2018-10-03T18:58:36Z")

</div>

AmplNLWriter hasn’t been updated to v1 yet. Help appreciated.
