Hi,
I recently upgraded to the latest IDE. (IDE 2.0 with Firmware 1.6.1.1)
My C Libraries can't be linked because of newly added LDFLAGS -Wl,-z,defs.
For example, I get following errors when I build following programs which can be compiled with IDE 1.7.
I do these because I have UMAC accessories specific libraries and application specific libraries, and the latter use the former.
Are there any ways to change linker options?
- Output window message
Build Process For libbbb.so has started.
...\TestProject\C Language\Libraries\bbb\bbb.c(4,0): Warning : in file included from bbb.c
...\TestProject\C Language\Libraries\bbb\..\aaa\aaa.h(1,0): Warning : no newline at end of file
...\TestProject\TestProject.ppproj(125,5): Error : bbb.o: In function `FuncB':
...\TestProject\C Language\Libraries\bbbbbb.c(8,0): Error : undefined reference to `FuncA'
...\TestProject\TestProject.ppproj(125,5): Error : collect2: ld returned 1 exit status
Build Process For libbbb.so has ended.
- C Language/Libraries/aaa/aaa.c
#include
#include
#include "../../Include/pp_proj.h"
void FuncA(void) {
int a, b, c;
c = a + b;
}
- C Language/Libraries/aaa/aaa.h
void FuncA(void);
- C Language/Libraries/bbb/bbb.c
#include
#include
#include "../../Include/pp_proj.h"
#include "../aaa/aaa.h"
void FuncB(void) {
FuncA();
}