Giter Club home page Giter Club logo

iup's People

Contributors

matwachich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iup's Issues

License

What is the license of this project? It's impossible to use this library without one.

multiple definition of `_imp__sqrt'

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

cannot find -lgcc

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.

iup-3.25_Win32_mingw6_lib can not build

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

could not determine kind of name for C._argc

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:

  • iup-3.18_Win64_vc14_lib.zip
  • iup-3.18_Win64_mingw4_lib.zip

I still receive this error when I try to compile the hello world code: could not determine kind of name for C._argc

error

I get the same error building outside LiteIDE.

Here are the static libraries. I'm on Windows 10 building using Go 1.6 64.

lib

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.