Problem with 'multiple definition of Serial' on Windows Vista

Status
Not open for further replies.

vivivek

New member
Hey all,

I'm running Teensy 3.0 under Arduino 1.02. I can't compile anything because I'm getting this error:

usb_inst.cpp.o:C:\Users\v\Downloads\arduino-1.0.2-teensy3-beta8-windows\arduino-1.0.2\hardware\teensy\cores\teensy3\/Print.h:21: multiple definition of `Serial'
main.cpp.o:C:\Users\v\Downloads\arduino-1.0.2-teensy3-beta8-windows\arduino-1.0.2\hardware\teensy\cores\teensy3\/Print.h:21: first defined here
collect2: ld returned 1 exit status

Any ideas on how to proceed? It's Vista ... ugh.

Thanks!

v
 
That's very strange.

Could you please turn on verbose messages when compiling and post the verbose version, and also post the sketch you're trying to compile?

The "verbose when compiling" option is in File > Preferences. Please quit and restart Arduino before doing the run where you copy & paste the output, so it will start fresh and recompile everything.
 
When you see the verbose messages, there are some harmless warning about violating strict aliasing. Don't be alarmed. That's normal.
 
Thanks Paul for the quick reply!
I actually wiped all of my old versions of Arduino along with their libraries, and after restarts and working with the Windows USB serial installer linked on the Teensy page, finally got this to work! Now I'm happily working that 32-bit core ... :]
 
I have the same issue but I can't figure out how to correct it.
Windows 7, 32 bit core, same error, same board and version of the software.

I don't have any old versions to wipe out. I installed the serial installer... I'm at a road block.

If I compile a blank sketch, I get the same error. It doesn't matter if the board is plugged in or not. It says COM 3.

I delete the the folder, re-extrated everything, and reran teensyduino again...No change.

I didn't have to choose which Teensy I was using this time....
 
Last edited:
Ok, I figured it out.

The solution is to NOT follow the install instructions or Tutorials for 1st use. They're apparently only for the Teensy 1 and 2.

Don't download the Teensy application and don't use teensyduino.
Only install the serial install and extract the arduino-1.0.2-teensy3.
 
This information needs to be on the teensy 3.0 main page, and in bold letters on the teensyduino page.
 
Status
Not open for further replies.
Back
Top