We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to compile a library of rom functions for the DS80C400. The Most of the files compile without a problem. The ones I do have difficulties with all have inline assembler. Obviously these are all bracketed with the appropriate #pragma. Now I understand I can generate a .src assembler file with the SRC option. Thus far I have not been able to assemble one of these generated files. The reason for failure always being : xxx.SRC(x): error A45: UNDEFINED SYMBOL The .lst file is telling me what is undefined but beyond be able to add extern declarations which I've tried and don't work I don't know what to do next. I feel I should have to edit automatically generated files to get them to work - I have done to see how to get things to work, but its a bad way of working and everytime I change the any C and have to regenerate the file I have to start again. I have to admit this does sound like its going to be one check box somewhere to solve this but I haven't found it in any of the documention so far. So 1) do I need to go down to generating assembler files? 2) If so how do I resolve the scoping issues? Cheers Bernard
The .lst file is telling me what is undefined But it's not telling us, because you forgot to quote the full error message you found in there, with all the details. Leaving out such potentially crucial details makes it next to impossible to help you.
I managed to sort out one of the problems, not using the SRC option directly, rather just using the generate and compile options from the file dialogs for the particular files - can you tell I'm new to the compiler?? I thought it was a general problem, hence not including them before. Looks like some/most are SDCC symbols, so I need the Keil equivalents for bpx _DPS _PSW _ESP _SP if anyone happens to know.... I am having a problem with a couple of user functions which are being called from asm code in a different file to the fn.