Can you advice how to compile application so app can be running without command line interface? Quick look didn't give an answer.
Added: compiling with -app:gui failed with error - see below.
http://nim-lang.org/docs/nimc.html#compiler-usage-command-line-switches
-app:console|gui|lib|staticlib generate a console app|GUI app|DLL|static library
compiling with --app:gui failed with:
C:\Nim\dev>nim c --app:gui test.nim
Hint: used config file 'C:\Nim\nim152\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
Hint: windows [Processing]
CC: stdlib_system
CC: oldwinapi_windows
Hint: [Link]
C:/Nim/nim152/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86
_64-w64-mingw32/bin/ld.exe: cannot find -lgdi32
C:/Nim/nim152/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86
_64-w64-mingw32/bin/ld.exe: cannot find -lcomdlg32
Error: execution of an external program failed: 'gcc.exe -mwindows -o c:\nim\d
ev\test.exe c:\nim\dev\nimcache\oldwinapi_windows.o c:\nim\dev\nimcache\stdlib_
system.o c:\nim\dev\nimcache\test.o '
source code is:
import windows
proc printMassage(txt: string):void =
discard MessageBox(0, txt, "English", MB_ICONEXCLAMATION or MB_OK)
printMassage("something")
how to fix this?Either you are missing some dlls or for some reason ld can't find them:
C:/Nim/nim152/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86
_64-w64-mingw32/bin/ld.exe: "cannot find -lgdi32"
C:/Nim/nim152/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86
_64-w64-mingw32/bin/ld.exe: "cannot find -lcomdlg32"
https://www.lifewire.com/how-to-fix-comdlg32-dll-not-found-or-missing-errors-2623189 or maybe is related to your mingw installation.