Originally Posted by
carrotcake1029
Can you provide us the sources so we can compile it ourselves?
Also, since this is giving you trouble, are you against compiling it statically?
Yes, I succeed in compiling it statically with the following commands:
gcc -c ..\source\libtest.c
ar rs libtest.a libtest.o
gcc --static -I..\bin -L..\bin -o mainprog ..\source\mainprog.c -ltest
The sourcecode:
Code:
libtest.c:
--------------------
#include <stdio.h>
#include <stdlib.h>
#include "libtest.h"
void yess() {
printf("How sweet is success");
}
libtest.h
---------
#include <stdio.h>
#include <stdlib.h>
extern void yess(void);
mainprog.c
----------
#include <stdio.h>
#include <stdlib.h>
#include "libtest.h"
int main() {
yess();
return(0);
}