Portable GUI toolkit (IUP) version 3.0 (RC2)
I've tried and can confirm that the tip given by Galeon takes care of the linking problems (rename libadvapi32.a to libadvapi32.dll.a).Galeon wrote:Try renaming <FreeBASIC Installation Dir>\lib\win32\libadvapi32.a to libadvapi32.dll.a
But there is actually an error in iup.bi At the start of the file there is a line
Code: Select all
#inclib "advapi32.dll"
Code: Select all
#inclib "advapi32"
With previous versions of fbc the line #inclib "advapi32.dll" did not pose a problem (linking succeeded without a problem).
Don't forget to remove libiup.dll.a and libiupcontrols.dll.a from lib/win32/ otherwise fbc will try to link with those libraries and not with the static once provided with the package.
I'm using Windows 7 Pro (64bit).
Thanks
Thanks, that worked like a charm. I'm still getting to know some of the quirks of FreeBASIC. One thing I find interesting is that the dll issue is due to using the MingG linker. Wouldn't switching to another assembler/linker like the Watcom one (which is open source as well) be a better solution to the issues with linking to dll's created with another product.
Re: Portable GUI toolkit (IUP) version 3.0 (RC2)
what is the latest version of your lib? which one,the lib in FBC release and you, is the newest one?
i think the one in FBC is new. However
1. the one in FBC are almost direct translation from C header. It is a little hard to use
2. there are only few demos using C_header-translated-bi in FBC. Many demos on this forum seem to use the old interface. Where can I find more little demos in FB? I always lost when I try to read C, sorry.
I read that IUP+CD+IM are used to program some applications including image processing app ( imlab). It looks nice and powerful
i think the one in FBC is new. However
1. the one in FBC are almost direct translation from C header. It is a little hard to use
2. there are only few demos using C_header-translated-bi in FBC. Many demos on this forum seem to use the old interface. Where can I find more little demos in FB? I always lost when I try to read C, sorry.
I read that IUP+CD+IM are used to program some applications including image processing app ( imlab). It looks nice and powerful
-
- Posts: 10
- Joined: Mar 07, 2018 23:01
Re: Portable GUI toolkit (IUP) version 3.0 (RC2)
Hello the world
I just installed IUP 3.26 on my system UBUNTU 16.04 without problems
I use FBC 1.05 and when i compile the example "message.bas", there is no problems
But when i execute the program
Thanks
Mars 1, 2019
Hello
In the end by doing this in 'IUP.BI'
it works !!!!!!!!!!!!!!!!
I just installed IUP 3.26 on my system UBUNTU 16.04 without problems
I use FBC 1.05 and when i compile the example "message.bas", there is no problems
Code: Select all
#include once "IUP/iup.bi"
#define NULL 0
'' Initializes IUP
IupOpen( NULL, NULL )
'' Shows a Message Box
IupMessage("IupMessage Example", "Hi! Press the button:")
'' Finishes IUP
IupClose ()
do you know this ?(message:8805): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap (core dumped)
------------------
(program exited with code: 133)
Press return to continue
Thanks
Mars 1, 2019
Hello
In the end by doing this in 'IUP.BI'
Code: Select all
'#inclib "gtk-x11-2.0"
'#inclib "gdk-x11-2.0"
it works !!!!!!!!!!!!!!!!
Re: Portable GUI toolkit (IUP) version 3.0 (RC2)
this is not a solution because iup is closely related to gtk. if the program uses an advanced function of gtk. it will crash.