본문 바로가기
IT/SW

archive & link lib (DirectFB + GTK+)

by 낭만테라스 2018. 7. 11.

archive & link lib (DirectFB + GTK+)


#include 

int printf1(void)
{
printf("PRINTF\n");
return 0;
}

#include 

int printf1(void)
{
printf("PRINTF\n");
return 0;
}


#include 
extern int printf1();

int main(int argc, char *argv[])
{
printf1();
return 0;
}



gcc -c a.c
gcc -c b.c
ar cr abclib a.o b.o
gcc -o test main.c abclib


'IT > SW' 카테고리의 다른 글

default ren-level 바꾸기 (DirectFB + GTK+)  (0) 2018.07.11
gtk+ compile option (DirectFB + GTK+)  (0) 2018.07.11
DirectFB-extra-1.0.0 (DirectFB + GTK+)  (0) 2018.07.11
fedora 12 설정 (DirectFB + GTK+)  (0) 2018.07.11
[Window gvim] vimrc  (0) 2018.07.11

댓글