Hi all,
i have found this strange problem with codewarrior compiler. My program is as follows
extern int i;
void test(int );
void main(void)
{
test(i);
}
void test(int j)
{
// do some logic
}
The program compiles without error. the program should have shown an error "i undefined". Can someone please explain me what is the solution for it?
Satya
已解决! 转到解答。
You should mention what particular CW version you are talking about.
It is CW for S12(X), then you should see some L1823 warnings, object created by default. To prevent this, you need to turn L1823 warning into error by adding -WmsgSe1823 to the linker command line string setting.
You should mention what particular CW version you are talking about.
It is CW for S12(X), then you should see some L1823 warnings, object created by default. To prevent this, you need to turn L1823 warning into error by adding -WmsgSe1823 to the linker command line string setting.