From: SourceForge.net <no...@so...> - 2012-06-18 11:42:59
|
Bugs item #3535211, was opened at 2012-06-14 07:11 Message generated for change (Comment added) made by molnarkaroly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3535211&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Molnár Károly (molnarkaroly) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect header interpretation (pic14) Initial Comment: I found a bug, which I thought that was corrected long ago. This due error few years since I use, custom headers (picXXX.h), instead of which is her own the sdcc. (Since then I forgot about this error.) Now I want compile a source in such a way that the original headers are I use. Does not succeed. (The old problem still exists. I do not understand. So much time has passed, and no one signaled?) Then I now will do it. The error may be produced with the attached archive. The error message: adc_busy.c:10: error 26: '_ADCON0bits' not a structure/union member adc_busy.c:10: error 25: Structure/Union expected left of '.->' SDCC : pic16/pic14 3.1.5 #7899 Károly ---------------------------------------------------------------------- Comment By: Molnár Károly (molnarkaroly) Date: 2012-06-18 04:42 Message: This line is causing the problem, which is not actually error: 546. line of pic12f675.h #define GO ADCON0bits.GO The solution is this: The command line of sdcc should be added this: -DNO_BIT_DEFINES Sorry that I did not notice this sooner. Other, but here also related to. Here we I asked, and I do not know what would be the better solution: https://sourceforge.net/tracker/?func=detail&atid=431665&aid=3526885&group_id=41924 Manually to write in the header the definition of missing bits, or some way to improve the errors in the .INC files of gputils? ---------------------------------------------------------------------- Comment By: Borut Ražem (borutr) Date: 2012-06-18 01:53 Message: Karoly, since you already have the working header file, can you please analyze where the problem is and prepare a patch? Is it a problem in header file generation perl script or in the (probably manually written or modified) header file itself? Borut ---------------------------------------------------------------------- Comment By: Molnár Károly (molnarkaroly) Date: 2012-06-17 07:39 Message: Anyway the pic14 libio is prepared, but after I can send if the compilation works with the original headers as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3535211&group_id=599 |