Hi All
This is code:
Code:
#include </home/cross/c_coding/C_CkHttp.h>
#include <stdio.h>
void ChilkatSample(void)
{
HCkHttp http;
BOOL success;
const char * html;
http = CkHttp_Create();
success = CkHttp_UnlockComponent(http,"Anything for 30-day trial");
if (success != TRUE) {
printf("%s\n",CkHttp_lastErrorText(http));
return;
}
html = CkHttp_quickGetStr(http,"http://yahoo.com/");
printf("%s\n",html);
CkHttp_Dispose(http);
}
main()
{
ChilkatSample();
}
And this is errors:
Code:
cross@iggy:~/c_coding$ gcc -o hi 1.c
/tmp/ccg8Hgy8.o: In function `ChilkatSample':
1.c:(.text+0x7): undefined reference to `CkHttp_Create'
1.c:(.text+0x1d): undefined reference to `CkHttp_UnlockComponent'
1.c:(.text+0x31): undefined reference to `CkHttp_lastErrorText'
1.c:(.text+0x4e): undefined reference to `CkHttp_quickGetStr'
1.c:(.text+0x67): undefined reference to `CkHttp_Dispose'
collect2: ld returned 1 exit status
cross@iggy:~/c_coding$
Help me plz!