From: SourceForge.net <no...@so...> - 2005-02-15 22:33:18
|
Bugs item #1123417, was opened at 2005-02-15 22:17 Message generated for change (Settings changed) made by eltorio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1123417&group_id=599 Category: linker Group: None Status: Open >Resolution: Fixed Priority: 5 Submitted By: Eltorio (eltorio) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with multiple files Initial Comment: I couldn't get this program working when compiled from multiple source files... It is composed of 2 .c files and .h files... When I concatenate the 2 .c files in one and compile it runs perfectly. The .ihx is different 70 bytes more in one file compilation sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51 /ds400/hc08 2.4.8 #9 54 (Feb 9 2005) (MINGW32) cat...@fr... ---------------------------------------------------------------------- Comment By: Eltorio (eltorio) Date: 2005-02-15 23:32 Message: Logged In: YES user_id=1071228 Thanks a lot it works well, Perhaps we can add an explanation in the "Multiple source files" section in the documentation ---------------------------------------------------------------------- Comment By: Erik Petrich (epetrich) Date: 2005-02-15 23:19 Message: Logged In: YES user_id=635249 I'm not sure if there are any other problems, but the interrupt function needs to be visible from the file containing main() since this is where the interrupt vector table is generated. Try adding the prototype to serial.h: void SerInt( void ) interrupt 4 using 2; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1123417&group_id=599 |