ubuntuÏ£¬C/C++ͨ¹ýJNIµ÷Óà JAVAÀà
֮ǰд¹ýÒ»¸öʵÏÖÁËijÖÖ¹¦ÄܵÄjava³ÌÐò£¬µ«ÓÉÓÚ½üÈÕ“¹¤×÷”ÐèÒª£¬ÓÖÐèÒªÔÚc/c++ÖÐÖØÐÂʹÓøù¦ÄÜ¡£ÎªÁ˽Úʡʱ¼ä£¬ÎÒ²ÉÈ¡ÁËÔÚc/c++Öе÷ÓÃjava³ÌÐòµÄ·½·¨£¬µ«Ö®Ç°Ã»ÓнӴ¥¹ýÀàËƵĶ«Î÷£¬µ½ÍøÉÏÒ»²é£¬¹ûÈ»ÓÐÀàËƵĶ«Î÷£¬ÐÄÖаµÏ²ing...¡£²éµ½µÄ×ÊÁÏÖÐÓм¸¸ö²»´íµÄÍøÒ³£º
http://blog.sina.com.cn/s/blog_48eef8410100fjxr.html
http://www.diybl.com/course/6_system/linux/Linuxjs/20100331/201638.html
http://hi.baidu.com/pjdashu/blog/item/5e54df9961040d006e068c1b.html
µÚÒ»¸öÍøÖ·£¬Ö÷Òª½éÉÜÁË°²×°java»·¾³ºÍ±àÒë¹ý³Ì£»
µÚ¶þ¸öÍøÖ·£¬Ö÷Òª½éÉÜÁËjniµÄʹÓ÷½·¨¡£
µÚÈý¸öÍøÖ·£¬×îºóµÄ´úÂë±È½ÏÃ÷È·µÄ˵Ã÷ÁËÈçºÎʹÓÃÀïÃæµÄ×Ö·û´®£¬¿ÉÒÔÖ±½Ó¿´×îºóÒ»¶ÎµÄ´úÂë¡£
ÎÒ°´ÕÕµÚÒ»¸öÍøÖ·µÄ·½·¨½øÐÐʵÑ飬·¢ÏÖÁ˺öàµÄÎÊÌâ¡£ÏÈ°ÑÖ÷ÒªÓ¦¸Ã×¢ÒâµÄµØ·½¼Ç¼ÈçÏ£º
ÎÒʹÓõĻ·¾³ÊÇ£ºUbuntu8.04
°²×°ÅäÖÃJava»·¾³ÒÔ¼°±àÒë
°²×°java»·¾³Ê±£¬ÎÒ²ÎÕÕÁË http://wiki.ubuntu.org.cn/Java°²×°ÅäÖÃ
µÄ°²×°ÅäÖ÷½·¨£¬°²×°µÄÊÇjava6¡£ÏÂÃæµÄÅäÖ÷¾¶¿ÉÄܸù¾ÝϵͳµÄ²»Í¬£¬ÂÔÓв»Í¬¡£ÔÚubuntuÏÂĬÈÏÊÇ°²×°µ½ÁË/usr/lib/jvmÏ¡£
È»¶ø£¬´Ë´¦µÄ˵·¨£º“
ҪʹÅäÖÃÉúЧ±ØÐëÖØÆô»úÆ÷»òÕßÔÚÃüÁîÐÐÊäÈë
”²¢²»ÍêÈ«ÕýÈ·£¬×îÆðÂë¶ÔÓÚLD_LIBRARY_PATHÀ´Ëµ²»ÕýÈ·£¬ÒòΪÓÐ×ÊÁÏÏÔʾ£º
òËÆ Ubuntu ²»ÄÜÔÚ profile, environment,.bashrcÖÐÉèÖà LD_LIBRARY_PATH,
¿ÉÒÔÕâÑù½â¾ö¿â×°ÔØÎÊÌ⣺
±à¼ /etc/ld.so.conf Îļþ£¬½«Ö¸¶¨µÄ·¾¶¼ÓÉÏ£¬»òÕßÔÚ /etc/ld.so.conf.d/
Ŀ¼ÖÐÌí¼ÓÒ»¸öеÄÅäÖÃÎļþ£¬ÄÚÈÝ¿´Ò»Ï¸ÃĿ¼ÏÂÆäËüÎļþ¾ÍÃ÷°×ÁË¡£¡£¡£µ±È»ÄãµÃÓÐȨÏÞÕâô×ö¡££¨http://forum.ubuntu.org.cn/viewtopic.php?f=56&t=94830
£©
ÎÒµÄ×ö·¨
Ҫôÿ´ÎʹÓÃ֮ǰ£¬ÒªÃ´ÏÈÔËÐГ. /etc/environment”£¬ÒªÃ´“export LD_LIBRARY_PATH=
$JRE_HOME/lib/i386/client”
ÅäÖùý³ÌÖÐÎÒ»¹²ÎÕÕÁ˵ÚÒ»¸öÍøÖ·ÖеÄÄÚÈÝ£º
JAVA_HOME=/usr/local/java/jdk1.5.0_06
PATH=$PATH:/usr/local/java/jre1.5.0_05/bin
export JAVA_HOME PATH
export
JRE_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
exp
Ïà¹ØÎĵµ£º
¼ò½é
¡¡¡¡¶ÔÓںܶà³õѧÕßÀ´Ëµ£¬ÍùÍù¾õµÃ»Øµ÷º¯ÊýºÜÉñÃØ£¬ºÜÏëÖªµÀ»Øµ÷º¯ÊýµÄ¹¤×÷ÔÀí¡£±¾ÎĽ«Òª½âÊÍʲôÊǻص÷º¯Êý¡¢ËüÃÇÓÐʲôºÃ´¦¡¢ÎªÊ²Ã´ÒªÊ¹ÓÃËüÃǵȵÈÎÊÌ⣬ÔÚ¿ªÊ¼Ö®Ç°£¬¼ÙÉèÄãÒѾÊìÖªÁ˺¯ÊýÖ¸Õë¡£
¡¡¡¡Ê²Ã´Êǻص÷º¯Êý£¿
¡¡¡¡¼ò¶øÑÔÖ®£¬»Øµ÷º¯Êý¾ÍÊÇÒ»¸öͨ¹ýº¯ÊýÖ¸Õëµ÷Óõĺ¯Êý¡£Èç¹ûÄã°Ñº¯ÊýµÄÖ¸Õë(µØÖ·)×÷Ϊ²ÎÊý ......
ʹÓà gperf ʵÏÖ¸ßЧµÄ C/C++ ÃüÁîÐд¦Àí
GNU ÍêÃÀ£¨gperf£©É¢Áк¯ÊýÉú³ÉÆ÷¼ò»¯¸´ÔÓµÄÊäÈë×Ö·û´®
ÎĵµÑ¡Ïî
¼¶±ð£º Öм¶
Arpan Sen
(arpan@syncad.com
), ¼¼ÊõÖ÷¹Ü, Synapti Computer Aided Design Pvt Ltd
2007 Äê 9 ÔÂ 10 ÈÕ
GNU µÄ gperf ¹¤¾ßÊÇÒ»ÖÖ “ÍêÃÀµÄ” É¢Áк¯Êý£¬¿ÉÒÔΪÓû§ÌṩµÄÒ»×éÌØ ......
vs2008ÀïÃ涨ÒåÈ«¾Ö±äÁ¿£º
extern bool *g_previewStatusArray = new bool[EQUIPMENT_AMOUNT](); //±»Ä¬Èϳõʼ»¯Îªfalse
µ«ÊÇÈç¹û²»¼ÓÉϺóÃæµÄÀ¨ºÅ£¬ÔòĬÈϳõʼ»¯Îªtrue¡£ ......
Cר¼Ò±à³Ì ¾«±àÖ®Ò» µÚÒ»ÕÂ~µÚÈýÕÂ
CµÄ¸´ÔÓÖ®´¦ ÔÚÓÚËüµÄÖ¸Õë ,µ«ÊDZÈÆäÖ¸Õë¸üΪ¸´ÔÓµÄÊÇËüµÄÉùÃ÷ !!!
ÄãÄÜ¿´¶®ËüÃǵÄÒâ˼ Âð?
apple=sizeof(int)*p ; apple=sizeof * p;
j= (char (*)[20])malloc(20);
int const * grape; Óë int * const gr ......
gcc ÊÇcµÄ±àÒëÆ÷£¬g++ÊÇc++µÄ±àÒëÆ÷¡£ccÒ»°ãÊÇÒ»¸ö·ûºÅÁ¬½Ó£¬Ö¸Ïògcc¡£
CCÒ»°ãÊÇmakefileÀïÃæµÄÒ»¸öÃû×Ö£¬¾ßÌåÊÇʲô¸ù¾Ýʵ¼ÊÇé¿ö¾ö¶¨¡£
gccºÍg++¶¼ÊÇGNU(×éÖ¯)µÄÒ»¸ö±àÒëÆ÷¡£
ÎóÇøÒ»:gccÖ»ÄܱàÒëc´úÂë,g++Ö»ÄܱàÒëc++´úÂë
Á½Õ߶¼¿ÉÒÔ£¬µ«ÊÇÇë×¢Ò⣺
1,ºó׺Ϊ.cµÄ£¬gcc°ÑËüµ±×÷ÊÇC³ÌÐò£ ......