I have iup.bi in inc\IUP but I cannot find a library in lib\win32. Searching I can see versions for Linux but none for Windows.
Does anyone know where I can get the library associated with iup.bi?
iup library
-
- Posts: 4310
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: iup library
From SourceForgedeltarho[1859] wrote:I have iup.bi in inc\IUP but I cannot find a library in lib\win32. Searching I can see versions for Linux but none for Windows.
Does anyone know where I can get the library associated with iup.bi?
https://sourceforge.net/projects/iup/fi ... s/Dynamic/
iup-3.27_Win32_dllw6_lib.zip
-
- Posts: 4310
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: iup library
Ha, ha - we meet again. I didn't want to take up any more of your time.
Anyway, I downloaded the zip. I saw that there was a bunch of 'a' files and dlls. When I tried to compile main.bas I was getting 'cannot find -liup' so I put a copy of libiup.a into "C:\Program Files (x86)\FreeBASIC\lib\win32". I still get 'cannot find -liup'. So I renamed the file to libiup.dll.a and I still get 'cannot find -liup'.
What am I doing wrong?
Anyway, I downloaded the zip. I saw that there was a bunch of 'a' files and dlls. When I tried to compile main.bas I was getting 'cannot find -liup' so I put a copy of libiup.a into "C:\Program Files (x86)\FreeBASIC\lib\win32". I still get 'cannot find -liup'. So I renamed the file to libiup.dll.a and I still get 'cannot find -liup'.
What am I doing wrong?
Re: iup library
Use -p ThePathWheretheIUPlibisdeltarho[1859] wrote:Ha, ha - we meet again. I didn't want to take up any more of your time.
Anyway, I downloaded the zip. I saw that there was a bunch of 'a' files and dlls. When I tried to compile main.bas I was getting 'cannot find -liup' so I put a copy of libiup.a into "C:\Program Files (x86)\FreeBASIC\lib\win32". I still get 'cannot find -liup'. So I renamed the file to libiup.dll.a and I still get 'cannot find -liup'.
What am I doing wrong?
If using poseidonFB:
-
- Posts: 4310
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: iup library
In iup.bi we have #inclib "iup". Why isn't that enough?
I take -p to be a command switch - for what?
I don't have a path ./lib.iup/iup327x32.
<confused>
I take -p to be a command switch - for what?
I don't have a path ./lib.iup/iup327x32.
<confused>
Re: iup library
https://www.freebasic.net/wiki/wikka.ph ... mpilerOptpdeltarho[1859] wrote:In iup.bi we have #inclib "iup". Why isn't that enough?
I take -p to be a command switch - for what?
I don't have a path ./lib.iup/iup327x32.
<confused>
The path is where my libiup.a is....
Re: iup library
@deltarho[1859]
all you really need is iup.dll, just place the dll where your program resides, fbc will link against the dll
this approach is good for testing, but I would rather make an import lib of iup.dll and place it in the lib folder.
or you could instead of an import lib place a copy of iup.dll in the lib folder, of course, your program still needs to be able to find the dll at runtime.
all you really need is iup.dll, just place the dll where your program resides, fbc will link against the dll
this approach is good for testing, but I would rather make an import lib of iup.dll and place it in the lib folder.
or you could instead of an import lib place a copy of iup.dll in the lib folder, of course, your program still needs to be able to find the dll at runtime.
-
- Posts: 4310
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: iup library
Thanks guys, I finally got there. Blimey, that was torturous!
It is quite a while since I did anything with static libraries and had forgotten the concepts. I decided not to write any coming to the same conclusion as José Roca and simply include source code. Of those that I did write all the binaries suffered a performance hit compared with source code inclusion.
With Kuan Hsu's cPathPlugin.7z download we have .poseidon, cPathPlugin.dll, libcPathPlugin.dll.a and main.bas. Main.bas should have been called cPathPlugin.bas.
@Kuan Hsu
What I now have is 'Set compiler paths' in the 'Set Custom Tools...', 'Compilers' in the title and SetCompilerPaths.ini. I have been looking at cPathPlugin.bas (main.bas). That is a new way to write GUI's for me but it looks like a steep learning curve so will stay with my usual approach.
Thanks again, both.
It is quite a while since I did anything with static libraries and had forgotten the concepts. I decided not to write any coming to the same conclusion as José Roca and simply include source code. Of those that I did write all the binaries suffered a performance hit compared with source code inclusion.
With Kuan Hsu's cPathPlugin.7z download we have .poseidon, cPathPlugin.dll, libcPathPlugin.dll.a and main.bas. Main.bas should have been called cPathPlugin.bas.
@Kuan Hsu
What I now have is 'Set compiler paths' in the 'Set Custom Tools...', 'Compilers' in the title and SetCompilerPaths.ini. I have been looking at cPathPlugin.bas (main.bas). That is a new way to write GUI's for me but it looks like a steep learning curve so will stay with my usual approach.
Thanks again, both.