Go Down

Topic: Arduino IDE C/C++ (Read 867 times) previous topic - next topic

fungus


I'll be honest i'm still kinda clueless lol

let's suppose i simply used AVRdude, could I compile, link, whatever and compile/upload straight from cmd line?   



Short version: Declare main the right way and the linker will use it.

Code: [Select]

int main(int argc,char*argv[])
{
  // I'm the best main()
}

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

majenko


I'll be honest i'm still kinda clueless lol

let's suppose i simply used AVRdude, could I compile, link, whatever and compile/upload straight from cmd line?   




AVRdude doesn't compile and link - it just uploads a .hex file.

To compile and link you need the avr-gcc and avr-binutils.  These are contained in the Arduino IDE, but are also available for separate download.

To work without the IDE, you should google for "Arduino Makefile".
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Go Up