Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple definition of `_imp__sqrt' #3

Open
josephspurrier opened this issue Apr 4, 2016 · 3 comments
Open

multiple definition of `_imp__sqrt' #3

josephspurrier opened this issue Apr 4, 2016 · 3 comments

Comments

@josephspurrier
Copy link

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
@qindj
Copy link

qindj commented Apr 5, 2016

same under x64...

@matwachich
Copy link
Owner

This is a conflict between ntdll and msvcrt libs. I have no idea how to solve it.

@kvarekamp
Copy link

same for me using tdm gcc 64. Also happens when I try to use iupmatrixex. I have no idea how to solve it either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants