linux¶àÏ̱߳à³É - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø
#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>
void *first()
{
printf("first pthread-----ABC\n");
}
void *second()
{
printf("second pthread-----ABC\n");
}
int main()
{
printf("mian pthread----ABC\n");
pthread_t fthread;
pthread_t sthread;
pthread_create(&fthread,NULL,first,NULL);
pthread_create(&sthread,NULL,second,NULL);
pthread_join(fthread,NULL);
pthread_join(sthread,NULL);
return 0;
}
ÎÒ±àÒëÌáʾ´íÎóÈçÏÂ
fily@zhaoyf:/media/work/develop/iscsitarget/usr$ gcc -o thread thread.c
/tmp/ccRbUIwW.o: In function `main':
thread.c:(.text+0x4e): undefined reference to `pthread_create'
thread.c:(.text+0x66): undefined reference to `pthread_create'
thread.c:(.text+0x74): undefined reference to `pthread_join'
thread.c:(.text+0x82): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
¸ßÊÖ°ï棬ÎÒ´íÔÚÄÄÀïÁË£¿
ÎÒʹÓõÄÊÇdebian5linux{{
Ïà¹ØÎÊ´ð£º
Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......
ÔÚ×Ô¼ºµÄµçÄÔÉÏ°²×°ÁËubuntu ¾ÍÊÇÏëÍæÒ»ÏÂ3D×ÀÃ棬ÓÚÊÇÏÂÔØÁË
compizconfig-settings-manager
emerald
simple-ccsm
fusion
ÕâЩ¶«Î÷£¬°²×°ÍêÖ®ºó£¬ÎÒÔÚµçÄÔÀïµã»÷ÁËemerald ......
´ó¼ÒºÃ£º
ÎҵĵçÄÔÁ·µÄÊǽÌÓýÍø£¬Éϲ»ÁËÍâ¹úµÄÍøÕ¾£¬ÔÚÓÃLinux¸üÐÂÈí¼þ£¬ÀýÈçapt-get»òÊÇyumµÄʱºòÁ¬²»µ½·þÎñÆ÷¡£²»ÖªµÀ´ó¼ÒÓÐûÓйýÕâÖÖÇé¿ö°¡£¬ÊÇÈçºÎ½â¾öµÄ°¡£¬Ð»ÁË£¡
¿ÉÒÔÕÒһϣ¬eduµÄ¸üÐÂÔ´¡£±ÈÈç ......
ÎÒѧϰLinuxÓÐÒ»¶Îʱ¼äÁË£¬Ñ§Ï°¹ýshell½Å±¾±àд£¬¿´¹ý¡¶Unix¸ß¼¶»·¾³±à³Ì¡·£¬µ«ÊÇ×ܾõµÃ¿´µÄºÍдµÄ³ÌÐòºÜÉÙ£¬¾õµÃ¿´ÁËÖ®ºóûÓÐʲô×÷Óã¬Ö»ÊǼÇסÁËЩº¯Êý¶øÒÑ£¬Ã»ÓÐʵս¡£¶øÇҸоõÏÖÔÚѧϰLinuxºÜûÓз½Ïò£¬²»Ö ......