@hotcore
Which Nim `IUP` library are you using? The libraries available on `Nimble`,
`niup` and `iup`, both seem to use dynamic linking (I might be wrong on this,
ask the repository maintainers to be sure).
The error you are getting indicates that you are trying to load a dynamic
`iup.dll` lib
Not able to load a DLL is often because:
* the DLL is located in a directory that is not in the PATH setting
(prove/disprove by copying the iup DLL to the same location of your exe file)
* the DLL name is wrong, (like `iup24d.dll` rather than `iup24.dll`, so
rename your DLL file)
* it is a
Tried that, but gives error:
could not load: iup(|30|27|26|25|24|).dll Error: execution of an external
program failed: name-of-my-program>
But still, many thanks for trying to help! I appreciate that very much!
You are using `GCC`, which probably means you have a `iup.a` (or maybe named
differently) static library file. Which probably means that the `--passL`
command you used will not work, as the `iup.lib` file is for MSVC++ compiler,
which I used. Something like `--passL:"iup.a iupcore.a"`, maybe?
Hi,
the compilation works, but linking does not work.
My config file:
app = gui
cc = gcc
gcc.exe = "gcc.exe"
gcc.linkerexe = "ld.exe"
--cincludes:"C:\\ProgramFiles\\IUP\\include"
--passL:"iup.lib iupcore.lib user32.lib Advapi32.lib Shell32.lib gdi32.lib
co
My `.cfg` file for a static linking IUP in my program using MSVC++ compiler:
app = gui
cc = vcc
vcc.exe = "cl.exe"
vcc.linkerexe = "cl.exe"
--cincludes:"D:\\...\\iup" #<-- This is where my iup.h and iup.lib are!
--passL: "iup.lib iupcore.lib user32.lib Advapi
Thx! Will try
Hi,
just trying to use IUP in Nim and please forgive my ignorance on the subject
... !
I have downloaded the static IUP files: iup-3.30_Win64_mingw6_lib.zip and I
extracted it in some folder X.
How can I tell the compiler to use the libraries in folder X?
TIA