samrajaf / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 1 forks source link

Coomented include directive give link error #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How explained here http://forum.pinguino.cc/showthread.php?tid=3424

This easy code

void setup()
{                
Serial.begin(9600);
}

void loop()
{
}

is compiled without problems

Adding this comment

// #include <pinguinoserial1.c>

generate this link error 
error while linking C:\Pinguino32X.2\examples\4.Communication\Serial/NoName0.o

The problem appear both on 2.x and 3.x Pinguino version.

Bye Bye, Moreno

Original issue reported on code.google.com by moreno...@gmail.com on 8 Apr 2012 at 4:52

GoogleCodeExporter commented 8 years ago
Can not reproduce this bug in X.2 version.
Please tell us:
- OS
- board
and post the complete file which produced the problem. 

Original comment by jp.mandon@gmail.com on 9 Apr 2012 at 11:19

GoogleCodeExporter commented 8 years ago
Hi

How explained here http://forum.pinguino.cc/showthread.php?tid=3424 my 
configuration is Windows 7 64bit but the problem appear under Linux, Pinguino 
version is 2.x 305 and 3.x latest branch.

The problem appears an all PIC32, Emperor and UBW32 boards, do not appears with 
generic_18xx and PICUno_ boards.

Bye Bye, Moreno

Original comment by moreno...@gmail.com on 9 Apr 2012 at 2:28

GoogleCodeExporter commented 8 years ago
Still the same in rev. 750
if //#include <pinguinoserial1.c> -> link error
if   #include <pinguinoserial1.c> -> no error

Took a look at define.h :
if //#include <pinguinoserial1.c> -> //#include <pinguinoserial1.c>
if   #include <pinguinoserial1.c> -> #include <pinguinoserial1.c>
if nothing                        -> #include <pinguinoserial1.c>

Seems to be an issue in wxgui/pinguino.py readlib() function.

Original comment by rblanchot@gmail.com on 23 Apr 2013 at 7:50

GoogleCodeExporter commented 8 years ago

Original comment by rblanchot@gmail.com on 31 Aug 2013 at 9:51