¿í×Ö·ûÖ§³Ö£¨linux£¬MinGW£¬Qt£©
1¡£ÒªÊ¹Óÿí×Ö·ûÖ§³Ö£¬Ê¹ÓÃw¿ªÍ·µÄһϵÁж«Î÷£¬Èçwstring£¬wofstreamµÈ¡£ÔÚʹÓÃwstringµÄʱºò£¬³£Á¿×Ö·û´®Ç°ÃæÒª¼ÓÉÏL£¬ÕâÑù²ÅÄÜת»»³Éwchar_tÐ͵Ä
else if(fileName.substr(fileName.rfind(L"."))==L".prj")
2¡£Ò»¸öÎļþÁ÷£¨ÎÞÂÛÊÇofstream»¹ÊÇwofstream£©£¬Ö»Ö§³Öconst char*×÷ΪÎļþÃû£¬¶ÔÓÚ¿í×Ö·ûµÄwstringµÄÎļþÃû£¬¸Ã×öһЩ´¦Àí¡£
DTchar mbsFileName[512];
DTint mbsSize=std::wcstombs(mbsFileName,m_dumpFileName.c_str(),m_dumpFileName.size()*sizeof(wchar_t));
mbsFileName[mbsSize]=0;
m_pDumpStream=new std::fstream(mbsFileName,std::ios::out|std::ios::binary);
ÉÏÃæµÄ´úÂëҪעÒâµÄÊÇ£¬wcstombsת»»ºóµÄcharÐòÁв¢Ã»ÓÐ0×Ö·û´®½áβ·û,ËùÒÔÄóöÈ¥Ö±½Óµ±×Ö·û´®Ê¹Óûá³ö´í¡£
»òÕß“You can use wcstombs() to narrow the filename or if you're feeling adventurous, the narrow() member function of the ctype facet of a std::locale.”
¼ûhttp://www.gamedev.net/community/forums/topic.asp?topic_id=358254&whichpage=1?
3¡£MinGW²»Ö§³Öwchar_t,ºÃÏñÊÇÒòΪlinuxϵÄwchar_tÊÇ4×ֽڵģ¬¶øwindowsÏÂvcÔËÐÐʱµÄwchar_tÊÇ2×ֽڵġ£
¼ûQtÖÐqstring.cppÖеÄÒ»¶Îdoxygen×¢ÊÍ
#ifndef QT_NO_STL
/*! fn QString QString::fromStdWString(const std::wstring &str)
Returns a copy of a str. a str is assumed to be encoded in
utf16 if the size of wchar_t is 2 bytes (e.g. on windows) and ucs4
if the size of wchar_t is 4 bytes (most Unix systems).
This constructor is only available if Qt is configured with STL
compabitility enabled.
sa fromUtf16(), fromLatin1(), fromLocal8Bit(), fromUtf8()
*/
¼ûMinGWµÄ¹Ù·½ÉùÃ÷£ºhttp://www.mingw.org/MinGWiki/index.php/wide%20characters
ÆäÖл¹ÓÐ2¸öÁ¬½Ó¡£
ÁíÍ⣺һ¸öhpµÄ¼Ò»ïhackµÄ·½·¨£º
http://lists.zerezo.com/mingw-users/msg00753.html
ºÜ¸´ÔÓ£¬ÎÒÓÖ²»¶®£¬°¦¡£¡£¡£¡£¾øÍû¡£
ÔÚlinuxϵÄÖ§³Ö¿í×Ö·ûµÄ£¬Ã»·¨ÔÚwindowsÏÂÒÆÖ²ÁË¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
4.MinGWϵÄQtÊÇÖ§³Ö¿í×Ö·ûµÄ£¬ÎÒ»¹²âÊÔÁËһϣ¬Èç¹ûÎļþ·¾¶Öк¬ÓГ×ÀÃ收þ×Ö£¬Îҵķǿí×Ö·ûÖ§³ÖµÄ³ÌÐò»ár
Ïà¹ØÎĵµ£º
ÔÚSolarisÉÏÃ湤×÷Óм¸¸ö²»·½±ãµØ·½:
Ò»¸öÊÇls²»ÄÜ°´ÕÕÎļþÀàÐÍÏÔʾÑÕÉ«;
ÁíÒ»¸öÊÇVIÒ²²»ÄÜÏÔÏÖÓ﷨ɫ²Ê;
ÕâÀï¾ÍÀ´ËµÃ÷ÈçºÎ½â¾öÕâÁ½¸öÎÊÌâ:
ÆäʵÕâÁ½¸öÎÊÌⶼÊÇSolaris×ÔÉíËù´øµÄlsºÍvi°æ±¾µÄÎÊÌâ;
ËùÒÔ½â¾ö°ì·¨¾ÍÊÇÏÂÔØ×îеÄlsºÍvimÔ´Îļþ°üÖØбàÒë½øÐа²×°,¿´ÉÏÈ¥ºÃÏñͦÂé·³,Æäʵ¾Í¼¸²½,ºÜ¼òµ¥µÄ:
×îеÄlsÊÇÔÚ ......
LinuxÉ豸Çý¶¯Ñ§Ï°£Davinci¿ª·¢°åÉÏÔËÐеÄhelloÄ£¿é
¿´Á˺ܶà¸öhello worldÁË£¬×Ô¼ºÀ´Ð´Ò»¸öÔÚdavinci°å¿éÉÏÅܵİɡ£
Ö÷ÌåºÜ¼òµ¥£¬¾ÍÊÇÒ»¸öCÎļþhello_davinci.c¡£
/*================hello_davinci.c==============*/
#include <linux/module.h> /*ËùÓÐÄ£¿é¶¼ÐèÒªµÄÍ·Îļþ*/
#include <lin ......
[ת]Linux¶¨Ê±Æ÷
ºËÖ÷ÒªÐèÒªÁ½ÖÖÀàÐ͵Äʱ¼ä£º
1.
ÔÚÄÚºËÔËÐÐÆÚ¼ä³ÖÐø¼Ç¼µ±Ç°µÄʱ¼äÓëÈÕÆÚ£¬ÒÔ±ãÄں˶ÔijЩ¶ÔÏóºÍʼþ×÷ʱ¼ä±ê¼Ç£¨
timestamp
£¬Ò²³ÆΪ
“
ʱ¼ä´Á
”
£©£¬»ò¹©ÓÃ
»§Í¨¹ýʱ¼ä
syscall ......
ÔÚ³¬¼¶Óû§ÏÂÏÔʾLinuxϵͳÖÐÕýÔÚÔËÐеÄÈ«²¿½ø³Ì£¬Ó¦Ê¹ÓõÄÃüÁî¼°²ÎÊýÊÇ ps -aux ¡£
Linux psÃüÁîÏê½â£º
1)ps a ÏÔʾÏÖÐÐÖն˻úϵÄËùÓгÌÐò,°üÀ¨ÆäËûÓû§µÄ³ÌÐò.
2)ps -A ÏÔʾËùÓгÌÐò.
3)ps c Áгö³ÌÐòʱ,ÏÔʾÿ¸ö³ÌÐòÕæÕýµÄÖ¸ÁîÃû³Æ,¶ø²»°üº¬Â·¾¶,²ÎÊý»ò³ ......
¾¹ý¼è¿àµÄ·Ü¶·£¬ÖÕÓڸ㶨ÁËfedoraϵͳ´Ó°²×°µ½3DÌØЧ(±¾ÈË°²×°µÄÊÇfedora
11)£¬ÎªÁË·½±ãºóÀ´µÄlinuxer£¬ÌØÁôϱ¾È˵ÄÈ«¹ý³ÌÒÔ¹©²Î¿¼¡£ÒÔϲ½ÖèÓеÄÀ´×ÔÓÚgoogleËÑË÷£¬Óв¿·ÖÀ´×ÔÓÚ¼ÎÓÓÖÐÎIJ©¿Í
£¨http://www.my-guides.net/en/content/view/164/26/£©£¬²¢¸Ðл¸÷·½Ç°±²µÄ±Ê¼£¡£
1.Ìí¼Órpm fusionÔ´
rpm -ivh
http://do ......