peplin / arduino.mk

DEPRECATED FORK: Arduino Makefile with chipKIT support
http://christopherpeplin.com/2011/12/chipkit-arduino-makefile/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Code sense on Xcode #10

Closed rei-vilo closed 12 years ago

rei-vilo commented 12 years ago

There's one trick detailed here but it's hard to get it work properly.

rei-vilo commented 12 years ago

Commit d55041b works fine!

Selecting the right generic % or * for makefile isn't that easy.

Except that mentioning #include "Blink.pde" in main.cpp raises the error

Builds/Blink.o: In function 'loop': /Users/OlS/Desktop/mpideXcode_g/Builds/Blink.cpp:56: multiple definition of 'loop' Builds/main.o:/Users/OlS/Desktop/mpideXcode_g/Blink.pde:55: first defined here

peplin commented 12 years ago

I think trying to include the .pde is going to be a little awkward - I recommend just putting the main() inside the .pde file so you don't have to try and #include it.

rei-vilo commented 12 years ago

Fine, no more duplicate declaration.

Included in mpideXcode Feb 08, 2012 release f

• Code-sense and click-to-error with standard targets • Code check-as-you-type only with Index as target (continous compiling)

rei-vilo commented 12 years ago

I've found the solution: just comment line 272 LOCAL_PDE_SRCS = $(wildcard *.pde) to avoid duplicate include of pde.