Hi,
I'm learning the dynamic linking, I run the unified_ridl demo and the simple hello.dll is loaded and executed well.
Now I want to add a sysbios function in the dll to see if it can be executed correctly. But it cannot generate the dll
my clock.c is below:
1 #include <stdio.h>
2 __declspec(dllexport) int start();
3 __declspec(dllimport) int Clock_getTicks();
4
5 int start()
6 {
7 unsigned long int time;
8 time = Clock_getTicks();
9 printf("System time in clk0Fxn = %lu\n", (unsigned long int)time);
10 return 1;
11 }
I try to generate the dll with the command line below,I add the header file's directory of Clock_getTicks and the lib under the same directory. But it still takes as undefined symbol.
1. can I add functions like Clock_getTicks in a dll?
2. How to compile it ?
Thank you!