When compiling with the large memory model I do not have this Undefined global problem
?ASlink-Warning-Undefined Global '_serinit' referenced by module 'maptest'
When compiling with the small and medium model I get it. I have recompiled the library file for both the small and medium models and they are in the respective sdcc library folders. I am not sure why I am getting this error and where to look to fix it. Thanks for the suggestions in advance.
The error occurs whether I run the linker from
C:\Micro-IDE_Projects\MapTest>sdcc --model-medium -Wl-p maptest.rel --lib-path c:\bipom\devtools\sdcc\lib\medium
/* Set the serial port to 19200 Baud */
#define CBR_19200 19200
#define OFF 0
#define ON 1
typedef unsigned char Uchar;
typedef unsigned int Uint;
typedef unsigned long Ulong;
//Unused Compiler switch settings
//--code-loc 0x0800 --debug
//Function Proto types
void serinit(unsigned long baudRate);
I am not looking for some one to fix this for me just some suggestions where to look.
your code taken as it is would bring this error message on every compiler, imho. due to the fact that serinit isn't defined anywhere.
plz post complete out-of-the-box _examples_(!), if at all possible. it isn't fun to interpret your post in a way "what means what: what is header and what .c .. and where is the routine ... declared?"
Thanks Kosmo I did not have the serinit routine in my small and medium lib directories. Not getting the error anymore.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.