(Solved)Why it works in windows but not in ubuntu

Hi everyone.

i use the arduino IDE in my windows 7 and my ubuntu, i don't undestarnd the next.

class puntero{
int v;
public:
puntero(){v=1;};
void incrementar(){v++;};
};

puntero* regresar(){
return new puntero();
}
void setup(){

}

void loop(){

}

it compile well in windows, but try to compile in ubuntu.

Sorry for my bad english xD

Compiles with Ubuntu 15.10 and IDE 1.6.6.

Some have also Arduino things installed from the repositories. The new and old Arduino files can not be mixed.
I have a minimal Java installed, and I have Arduino IDE 1.6.7 unpacked in a folder and run it with a shortcut in the menu and on the desktop.

Try 'synaptic' to seach for things like "rxtx" or "arduino" and remove those. If you want you can have "gcc-avr" installed and the "avr-libc" and "binutils-avr", if you want to compile without using Arduino. Otherwise, you can remove those as well with synaptic.

SurferTim:
Compiles with Ubuntu 15.10 and IDE 1.6.6.

Koepel:
Some have also Arduino things installed from the repositories. The new and old Arduino files can not be mixed.
I have a minimal Java installed, and I have Arduino IDE 1.6.7 unpacked in a folder and run it with a shortcut in the menu and on the desktop.

Try 'synaptic' to seach for things like "rxtx" or "arduino" and remove those. If you want you can have "gcc-avr" installed and the "avr-libc" and "binutils-avr", if you want to compile without using Arduino. Otherwise, you can remove those as well with synaptic.

Very thank you! to both, you are right, my arduino version is so old (1.0.5, installed from the software center in ubuntu), i downloaded the arduino IDE 1.6.7 from the official page, now i have no problems to compile from my ubuntu. :slight_smile:

There should not be a problem having several versions of the Arduino IDE. This PC (Puppy Linux) has 1.0.5, 1.5.6 (which I normally use) and 1.6.3.

They are just Java programs so just download them and put them in a convenient directory.

Installing from the software centre may be what caused the problem.

...R