Hello, I was wondering if the build_executable function was working. I tried using it on Windows and got the following error (I included some lines above the error for context):
... > require.jl > docs/helpdb.jl > docs/basedocs.jl > C:\Users\Jeremy\AppData\Local\Julia-0.4.1\share\julia\base\precompile.jl > INFO: Linking sys.dll > INFO: System image successfully built at > C:\Users\Jeremy\AppData\Local\Julia-0.4.1\bin\libtestitnow.dll > WARNING: Building sys.dll on Windows against LLVM < 3.5.0 can cause > incorrect backtraces! Delete generated sys.dll to av > oid these problems > INFO: To run Julia with this image loaded, run: julia -J > C:\Users\Jeremy\AppData\Local\Julia-0.4.1\bin\libtestitnow.dll > > running: > C:\Users\Jeremy\.julia\v0.4\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\gcc.exe > > -g -Wl,--no-as-needed > `-D_WIN32_WINNT=0x0502` > -IC:\Users\Jeremy\AppData\Local\Julia-0.4.1\include\julia > -IC:\Users\Jeremy\AppData\Local\src - > IC:\Users\Jeremy\AppData\Local\src/support > -IC:\Users\Jeremy\AppData\Local\usr/include > -IC:\Users\Jeremy\.julia\v0.4\Win > RPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\include > C:\Users\Jeremy\AppData\Local\Temp\jul12B2.tmp\start_func.c -o C: > \Users\Jeremy\AppData\Local\Julia-0.4.1\bin\testitnow.exe > -Wl,-rpath,C:\Users\Jeremy\AppData\Local\Julia-0.4.1\bin -LC:\ > Users\Jeremy\AppData\Local\Julia-0.4.1\bin -ljulia -ltestitnow > C:\Users\Jeremy\AppData\Local\Temp\jul12B2.tmp\start_func.c: In function > 'main': > C:\Users\Jeremy\AppData\Local\Temp\jul12B2.tmp\start_func.c:19:5: error: > too few arguments to function 'jl_atexit_hook' > jl_atexit_hook(); > ^ > In file included from > C:\Users\Jeremy\AppData\Local\Temp\jul12B2.tmp\start_func.c:1:0: > C:\Users\Jeremy\AppData\Local\Julia-0.4.1\include\julia/julia.h:1188:16: > note: declared here > DLLEXPORT void jl_atexit_hook(int status); > ^ > ERROR: failed process: > Process(setenv(`'C:\Users\Jeremy\.julia\v0.4\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bi > n\gcc.exe' -g -Wl,--no-as-needed -D_WIN32_WINNT=0x0502 > '-IC:\Users\Jeremy\AppData\Local\Julia-0.4.1\include\julia' '-IC: > \Users\Jeremy\AppData\Local\src' > '-IC:\Users\Jeremy\AppData\Local\src/support' > '-IC:\Users\Jeremy\AppData\Local\usr/incl > ude' > '-IC:\Users\Jeremy\.julia\v0.4\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\include' > > 'C:\Users\Jeremy\AppData\ > Local\Temp\jul12B2.tmp\start_func.c' -o > 'C:\Users\Jeremy\AppData\Local\Julia-0.4.1\bin\testitnow.exe' > '-Wl,-rpath,C:\Use > rs\Jeremy\AppData\Local\Julia-0.4.1\bin' > '-LC:\Users\Jeremy\AppData\Local\Julia-0.4.1\bin' -ljulia > -ltestitnow`,Union{AS > CIIString,UTF8String}["=C:=C:\\Users\\Jeremy\\AppData\\Local\\Julia-0.4.1","ADMSXMLBINDIR=C:\\Program > > Files (x86)\\Qucs\ > > \bin","ADS_LICENSE_FILE=6609@localhost","ALLUSERSPROFILE=C:\\ProgramData","APPDATA=C:\\Users\\Jeremy\\AppData\\Roaming", > "ASCOBINDIR=C:\\Program Files > (x86)\\Qucs\\bin","CommonProgramFiles=C:\\Program Files\\Common > Files","CommonProgramFiles > (x86)=C:\\Program Files (x86)\\Common > Files","CommonProgramW6432=C:\\Program Files\\Common > Files","COMPUTERNAME=JBEJANIN > > ","ComSpec=C:\\Windows\\system32\\cmd.exe","FLEXLM_TIMEOUT=2000000","FP_NO_HOST_CHECK=NO","HOME=C:\\Users\\Jeremy","HOME > > DRIVE=C:","HOMEPATH=\\Users\\Jeremy","LM_LICENSE_FILE=6065@lka-ic-01;6065@localhost","LOCALAPPDATA=C:\\Users\\Jeremy\\Ap > pData\\Local","LOGONSERVER=\\\\JBEJANIN","MATLAB_HOME=C:\\Program > Files\\MATLAB\\R2015a","MOZ_PLUGIN_PATH=C:\\PROGRAM FI > LES (X86)\\FOXIT SOFTWARE\\FOXIT > READER\\plugins\\","NIDAQmxSwitchDir=C:\\Program Files (x86)\\National > Instruments\\NI- > DAQ\\Switch\\","NUMBER_OF_PROCESSORS=4","OCTAVEDIR=C:\\Program Files > (x86)\\Qucs\\share\\qucs\\octave","OPENBLAS_MAIN_FR > > EE=1","OS=Windows_NT","Path=C:\\Users\\Jeremy\\AppData\\Local\\Julia-0.4.1\\bin;C:\\Users\\Jeremy\\AppData\\Local\\Julia > -0.4.1\\bin\\..\\Git\\bin;C:\\Users\\Jeremy\\AppData\\Local\\Julia-0.4.1\\bin\\..\\Git\\usr\\bin;C:\\Program > > Files (x86) > \\SumatraPDF;C:\\Program Files (x86)\\NVIDIA > Corporation\\PhysX\\Common;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Prog > ram Files > (x86)\\Qucs\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsP > owerShell\\v1.0\\;D:\\Programs\\MiKTeX > 2.9\\miktex\\bin\\x64\\;C:\\Users\\Jeremy\\AppData\\Local\\Julia-0.4.1\\bin;C:\\P > rogram Files\\MATLAB\\R2015a\\runtime\\win64;C:\\Program > Files\\MATLAB\\R2015a\\bin;D:\\Programs\\Git\\cmd;D:\\Programs\ > \Git\\usr\\bin;D:\\Programs\\Vim\\vim74;C:\\Program Files > (x86)\\FastFieldSolvers\\FastHenry2\\Utilities;C:\\Program Fil > es > (x86)\\FastFieldSolvers\\FastCap2\\Utilities;C:\\Users\\Jeremy\\AppData\\Local\\atom\\bin;;C:\\Users\\Jeremy\\.julia\ > > \v0.4\\WinRPM\\deps\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\bin;C:\\Users\\Jeremy\\.julia\\v0.4\\WinRPM\\deps\\usr\\x > > 86_64-w64-mingw32\\sys-root\\mingw\\bin","PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCH > ITECTURE=AMD64","PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping > 9, GenuineIntel","PROCESSOR_LEVEL=6","PROCESSOR > _REVISION=3a09","ProgramData=C:\\ProgramData","ProgramFiles=C:\\Program > Files","ProgramFiles(x86)=C:\\Program Files (x86 > )","ProgramW6432=C:\\Program > Files","PSModulePath=C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\","PUBLIC=C:\ > \Users\\Public","QUCSDIR=C:\\Program Files > (x86)\\Qucs","SESSIONNAME=Console","SIMPLORER_HOME=D:\\Programs\\AnsysEM\\Ans > > ysEM15.0\\Win64","SIMPMSCoSimDLL=D:\\Programs\\AnsysEM\\AnsysEM15.0\\Win64\\SIMPMSCoSim.dll","SIMPPncSimCoSimDLL=D:\\Pro > > grams\\AnsysEM\\AnsysEM15.0\\Win64\\SIMPncSimCoSim.dll:LoadCoSimInterface","SIWAVE_INSTALL_DIR=D:\\Programs\\AnsysEM\\An > > sysEM15.0\\Win64","SW_D_LICENSE_FILE=6611@lmserver-4","SystemDrive=C:","SystemRoot=C:\\Windows","TANNERHOST=lmserver-1", > > "TANNERHOST2=local","TEMP=C:\\Users\\Jeremy\\AppData\\Local\\Temp","TMP=C:\\Users\\Jeremy\\AppData\\Local\\Temp","USERDO > MAIN=JBEJANIN","USERNAME=jbejanin","USERPROFILE=C:\\Users\\Jeremy","windir=C:\\Windows"]), > > ProcessExited(1)) [1] > in run at process.jl:531 The main() function that I am trying to compile is simply: function main() @printf("Hello %d\n", 5) end Thanks, Jeremy