matwachich / iup Goto Github PK
View Code? Open in Web Editor NEWGoLang wrapper for IUP GUI library (3.18)
License: The Unlicense
GoLang wrapper for IUP GUI library (3.18)
License: The Unlicense
What is the license of this project? It's impossible to use this library without one.
You may want to add these links so people know where to get the files. I'm new to C and iUP so these references may help new users:
I'm trying to test each of the example programs.
I am using the x86 Go compiler with x86 GCC compiler. I added the cd folder inside of the lib folder with the correct files from this URL:
https://sourceforge.net/projects/canvasdraw/files/5.9/Windows%20Libraries/Static/
When I try to test cbox.go, these are the errors I get when I try to compile:
C:\Users\JosephSpurrier\Desktop\Dev\GoPortWin1.6-r.2-iup\go\pkg\tool\windows_386\link.exe: running gcc failed: exit status 1
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libntdll.a(dmpns02007.o):(.idata$5+0x0): multiple definition of `_imp__sqrt'
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libmsvcrt.a(dzbxs00920.o):(.idata$5+0x0): first defined here
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libntdll.a(dmpns01971.o):(.idata$5+0x0): multiple definition of `_imp__ceil'
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libmsvcrt.a(dzbxs00794.o):(.idata$5+0x0): first defined here
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libntdll.a(dmpns01974.o):(.idata$5+0x0): multiple definition of `_imp__floor'
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/lib/../lib/libmsvcrt.a(dzbxs00815.o):(.idata$5+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
I changed to Go 1.6 32 instead of 64. I installed mingw32 using win-builds-1.5.0. I make sure c:\mingw32 was part of my path. It doesn't matter if the lib folder is there or not, same error. The libs I'm using are: iup-3.18_Win32_mingw4_lib
When I build, this is my error log:
C:/Users/JosephSpurrier/Desktop/Dev/GoPortWin1.6-r.2-iup/go/bin/go.exe build -i [C:/Users/JosephSpurrier/Desktop/Dev/GoPortWin1.6-r.2-iup/workspace/src/hello]
# github.com/matwachich/iup
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3\libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3\libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib/libpthread.dll.a when searching for -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib/libpthread.a when searching for -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib\libpthread.a when searching for -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib/libpthread.dll.a when searching for -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib/libpthread.a when searching for -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpthread
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3\libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc.a when searching for -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3\libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/libgcc_eh.a when searching for -lgcc_eh
c:/mingw32/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_eh
collect2.exe: error: ld returned 1 exit status
Error: process exited with code 2.
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/bin/ld.exe: $WORK\b001\_x003.o: in function `cgo_a287b9c43877_Cfunc_IupParamf':
/tmp/go-build/cgo-gcc-prolog:1850: undefined reference to `IupParamf'
collect2.exe: error: ld returned 1 exit status
I downloaded the following static libraries (https://sourceforge.net/projects/iup/files/3.18/Windows%20Libraries/Static/) and tried them both with the same error:
I still receive this error when I try to compile the hello world code: could not determine kind of name for C._argc
I get the same error building outside LiteIDE.
Here are the static libraries. I'm on Windows 10 building using Go 1.6 64.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.