-
Notifications
You must be signed in to change notification settings - Fork 651
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
collect2.exe: error: ld returned 1 exit status #226
Comments
Please post the complete build log. |
I have the same issue, under windows 10/go version go1.7.1 windows/amd64.
then it result in following error:
|
Download MinGW-W64 .This could solve the problem.I just solved it.Add it to the path. |
Hey,I have same problem,this is my build log:
|
I'm starting to wonder why some MinGW-w64s seem to not take other MinGW-w64 binaries... |
I found a way to solve this problem: install MinGW-W64 with MinGW-W64 online-installer version 7.1 passed |
Here is a simple solution for Windows
The only issue I got now is, launching it will always open a console window. |
@limingjie |
Guys, I was just running a code compiling using Arduino compiler and ran into following problem- Arduino: 1.8.4 (Windows 7), Board: "Arduino/Genuino Uno" D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `setup': D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:23: undefined reference to `LedControl::shutdown(int, bool)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:25: undefined reference to `LedControl::setIntensity(int, int)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:27: undefined reference to `LedControl::clearDisplay(int)' D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `writeArduinoOnMatrix': D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:46: undefined reference to `LedControl::setRow(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:47: undefined reference to `LedControl::setRow(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:48: undefined reference to `LedControl::setRow(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:49: undefined reference to `LedControl::setRow(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:50: undefined reference to `LedControl::setRow(int, int, unsigned char)' D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o:D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:52: more undefined references to `LedControl::setRow(int, int, unsigned char)' follow D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `columns': D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:126: undefined reference to `LedControl::setColumn(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:128: undefined reference to `LedControl::setColumn(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:131: undefined reference to `LedControl::setColumn(int, int, unsigned char)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:133: undefined reference to `LedControl::setColumn(int, int, unsigned char)' D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `single': D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:147: undefined reference to `LedControl::setLed(int, int, int, bool)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:150: undefined reference to `LedControl::setLed(int, int, int, bool)' D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:152: undefined reference to `LedControl::setLed(int, int, int, bool)' D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0': D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:13: undefined reference to `LedControl::LedControl(int, int, int, int)' collect2.exe: error: ld returned 1 exit status Error compiling for board Arduino/Genuino Uno. This report would have more information with Please, help me regarding this problem... |
All of those undefined symbols are in the Arduino SDK, not in package ui. You'll have to ask there; sorry. |
Merged with #281. I don't know if @limingjie's solution was ever correct unless the download is actually for MinGW-w64, though this now makes me wonder if MinGW-w64 is even needed anymore... |
collect2.exe: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: