Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux systemº¯ÊýÔõôÓÃ

ÎÒÓÃÁË£¬µ«³ö´íÁË
³ÌÐòΪ
#include <stdlib.h>
int main()
{
system("ls /etc/");
return 0;
}
Óà gcc -o test test.cpp ±àÒëºó±¨´í
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
collect2: ld returned 1 exit status

Ôõô½â¾ö£¿¼±°¡
ÓÃg++,Èç¹ûÓÃgcc±ØÐë¼Ó-lstdc++

ÒýÓÃ
ÓÃg++,Èç¹ûÓÃgcc±ØÐë¼Ó-lstdc++


²»Ðа¡¸çÃÇ£¬»¹ÓÐÆäËûµÄ·½·¨Â

ʹÓÃgcc  -g  -o  test  test.c ÊÔÊÔ¿´¡£


ÁíÍâÄãµÄmainº¯Êý²ÎÊý²»¶Ô£¬±ê׼д·¨ÊÇ£ºint main( int argc, char * argv [] )


g++ -o test test.cpp

Èç¹ûÒªÓÃgcc

gcc -o test test.cpp -lstdc++

ÐÖµÜÃÇÎҷdz£¶Ô²»Æð´ó¼Ò£¬ÎÒ°Ñmain д³ÉÁËmian¡£¡£¡£¡£¡£¡£¡£¡£¡£
É¢·ÛÉ¢·Û


Ïà¹ØÎÊ´ð£º

ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í

ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......

Linuxϰ²×°ÎÊÌâ

Ô­ÏȵÄGCC°æ±¾Îª4.1.2,ÎÒÖØÐ±àÒë°²×°ÁËGCC4.3.2£¬µ«ÊDZàÒëÍê³ÌÐòÔËÐгÌÐòʱ»á³öÏÖversion `GLIBCXX_3.4.9' not found Õâ¸öÎÊÌ⣬ÎÒ²»Ì«Ã÷°×Ôõô»ØÊ£¬Çë¸÷λ´óϺָµãһϡ£
ÊÖ¶¯ÔÙ×°Ò»´Îglibc*_3.4.9

ÕâÊÇÎ ......

ͬʱÌṩ windowsϵÄdllºÍ linuxϵÄso Îļþ

ÎÒҪд¸ö·þÎñ¶Ë¡£ ÒªÇóͬʱ֧³Öwindows ºÍ linux Á½¸ö ϵͳ¡£  Ò²¾ÍÊÇҪдһ¸ö dllºÍÒ»¸öso Îļþ¡£ÓÉÓÚÎÒÒ»Ö±¶¼ÊÇÔÚwindsÏÂд³ÌÐò¡£linuxµÄ»¹²»»á¡£ Ïò´ó¼Ò×Éѯ ͬʱ Ö§³Ö dllºÍso  Ó¦¸ÃÔõôд¡£
Óô¿c/c ......

LinuxÈçºÎÔÚͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл» [

¸÷λ´óϺ£¬ÎÒÕýÔÚѧϰLinux£¬¿ÉÊÇLinuxͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»Óöµ½À§ÄÑ£¬ÔÚÃüÁîÐÐÏÂÊäÈëstartx£¬²»ÊǽøÈëͼÐνçÃæ 
¶øÊdzöÏÖ
ÇëÎʸ÷룬ÕâÊÇΪʲô£¿ ¶øÇÒ°´Ctrl+Alt+F7£¬Ò²²»ÄÜÃüÁîÐнøÈëͼÐνçÃæ¡£&nbs ......

linux ÄÚ´æ³õʼ»¯

linux³õʼ»¯Ê±°ÑÖ§³ÖµÄÎïÀíÄÚ´æ¶¼Ó³Éäµ½page tableÖУ¬Ö®ºó½ø³ÌÐèÒªÄÚ´æÊ±£¬Ò²ÊÇÓ³Éäµ½Õâ¸öÎïÀíÄÚ´æÖУ¬Èç´Ë˵À´£¬linux³õʼ»¯Ê±´´½¨µÄpage tableºÍ½ø³ÌÖд´½¨µÄpage tableÖ¸Ïòͬһ¿éÎïÀíÒ³ÃæÂð£¿ÕâÑù×öµÄÄ¿µÄÊÇʲô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ