This maybe because the c compiler is designed to work in linux.I had this problem too and to fix it go to tools and select compiler options.In the box click on programs. Now you will see a tab with gcc and make and the respective path to it.Edit the gcc and make path to use mingw32-c.exe and mingw32-make.exe respectively.Now it will work.

  1. It means that the linker failed. The linker was trying to link in the object code for that function, but it was not found in any of the object files it looked in.
  2. Collect2.exe:-1: error: error: ld returned 1 exit status SOLVED This topic has been deleted. Only users with topic management privileges can see it. Whiterabbott last edited. I have installed Qt 5.1.1 on my windows 8 machine. I am compiling with mingw and want in link to gsl.

Hello,
I am currently working on using wolfssl on ESP8266(a convenient wifi module) to create https linking via arduino for esp8266,but when I programmed your example for arduino,I met the problem as follows:

Collect2 errorCollect2 error ld

C:UsersgavinAppDataLocalTempbuild1361818746455674135.tmpwolfssl-masterasn.c.o: In function `CheckCurve':
D:arduino-1.6.5-r5-windowsarduino-1.6.5-r5librarieswolfssl-master/asn.c:3473: undefined reference to `__ctype_ptr__'
C:UsersgavinAppDataLocalTempbuild1361818746455674135.tmpwolfssl-masterasn.c.o: In function `ExtractDate':
D:arduino-1.6.5-r5-windowsarduino-1.6.5-r5librarieswolfssl-master/asn.c:3473: undefined reference to `gmtime'
C:UsersgavinAppDataLocalTempbuild1361818746455674135.tmpwolfssl-masterasn.c.o: In function `ValidateDate':
D:arduino-1.6.5-r5-windowsarduino-1.6.5-r5librarieswolfssl-master/asn.c:3473: undefined reference to `gmtime'
C:UsersgavinAppDataLocalTempbuild1361818746455674135.tmpwolfssl-masterrandom.c.o: In function `wc_RNG_HealthTestLocal':
D:arduino-1.6.5-r5-windowsarduino-1.6.5-r5librarieswolfssl-master/random.c:556: undefined reference to `random'
C:UsersgavinAppDataLocalTempbuild1361818746455674135.tmpwolfssl-masterrandom.c.o: In function `wc_GenerateSeed':
D:arduino-1.6.5-r5-windowsarduino-1.6.5-r5librarieswolfssl-master/random.c:556: undefined reference to `random'
collect2.exe: error: ld returned 1 exit status

Collect2 Exe Error Dev C 2b 2b 3

I don't know actually how to correct that and hope you can give me some advice.
I am using arduino 1.6.5 .My system is Windows 7