azuan 2 Report post Posted June 18, 2005 aku nak tanya sikit.boleh ke source code yang ditulis untuk dikompil dalam unix platform (ambil la linux contohnya) kita compile dalam windows platform guna perisian macam borland c ke, turbo ke atau apa apa perisian compiler untuk windows? ni kalau nak cerita selain dari guna cygwin. sebab aku compile source ni guna cygwin gagal. sedangkan compile dalam linux lepas. aku ada terbaca kalau nak compile source tu dalam compiler win32 kena ada windows.h lepastu kena edit sikit2 line dalam sourcefile tu. ada sesapa ada idea ke? yang penah buat ke? ataupun naktaknak aku kena jugak guna cygwin tu. abihtu kalau cygwin pun taklepas. Quote Share this post Link to post Share on other sites
publicENEMY 0 Report post Posted June 19, 2005 boleh. tapi...pastikan library yg digunakan ada didalam kompiler baru.jika library yg digunakan ada didalam kompiler baru, bagaimana pula dengan cara panggilan fungsinya? sama?adakah program itu ada guna user interface? jika ada, ada ke ui tu dalam windows platform?pastikan koding standard yg digunakan disokong oleh kompiler baru eg c99.memang cygwin adalah linux compiler emulator. tapi emulator tak sama ngan the real thing. issue arises. just have to deal with it. trace back every error. tapi kalau guna cygwin pun tak boleh settle, apatah lagi kalau nak guna compiler laiin(vc, bc dll)imho, thats about it. Quote Share this post Link to post Share on other sites
1kHz 0 Report post Posted June 21, 2005 cuba try compile guna Bloodshed Dev-C++ Quote Share this post Link to post Share on other sites
sharuzzaman 1 Report post Posted June 21, 2005 kalau dapat tahu apa errornya, mungkin boleh membantu... Quote Share this post Link to post Share on other sites
azuan 2 Report post Posted June 21, 2005 orait nanti aku cuba. Quote Share this post Link to post Share on other sites
b1naryc0de 1 Report post Posted June 21, 2005 Aku rasa masalah library.. Sebab C dalam windows dia ada ubah2 sikit.. Kene tengoklah error dia ape.. Quote Share this post Link to post Share on other sites
Ancient One 3 Report post Posted June 23, 2005 kalau kod ikut standard C takde masalah nak kompil kat maner2. Quote Share this post Link to post Share on other sites
1kHz 0 Report post Posted June 23, 2005 kadang2 code utk linux dia akan include kernel punya code, misalnya nak check kernel version atau kadang2 nak check distro apa.. tu yg tak compatible dgn windows..dari pengalaman aku yg sangat cetek dgn Linux.. bro sharuzzaman yg terer itu mungkin dapat bantu.. bak kata bro sharuzzaman, bagi error message kat sini itulah yg sebaik2nya.. Quote Share this post Link to post Share on other sites
azuan 2 Report post Posted June 26, 2005 (edited) nanti aku bubuh error dia oi. tungguuuuuuuuuuuuuuuu+ tambahansekarang ni apa yang aku tau, freebsd boleh execute linux binary/precompiled binary kalau dia ada install pakej tu. linux pun boleh run win32 application kalau dia ada install pakej macam wine.ada tak sebarang program untuk windows yang membenarkan precompiled/binary linux run dalam windows platform? kalau ada ni lagi mudah takpayah la aku susah2 compile unix source untuk jadikan dia windows binary. Edited June 26, 2005 by azuan Quote Share this post Link to post Share on other sites
Ancient One 3 Report post Posted June 28, 2005 aper kata ko pasang PC emulator cam VMWare/Bosch/etc dan install linux. Dengan tu ko takyah laa susah2 compile unix source untuk jadikan dia windows binary. Quote Share this post Link to post Share on other sites
azuan 2 Report post Posted July 10, 2005 tak tak tak. aku rasa ko tak dapat gambaran sebenar apa maksud aku ancient one.aku bukannya nak wujudkan unix platform dalam windows. kalau macamtu memang la aku install vmware, colinux, virtual pc dan sebagainya.aku cuma nak "ala ala wine". wine membenarkan win32 application run dalam linux platform.kira ni kes terbalik la. sekarang ni memang aku dah cari satu dunia apa apa add-ons atau program yang boleh jadikan windows boleh execute binary/precompile linux binary. tak jumpa pun. memandangkan apa yang aku baca kat MSDN berkenaan camana nak tukar unix sourcecode kepada windows sourcecode amat memeningkan, dan compile dalam cygwin pulak kantoi (keluar error undefined reference blablabla), ada tak apa apa program yang boleh convert source code ni supaya compatible dengan compiler c untuk windows? kira lebih kurang macam program yang boleh convert asp kepada php. kira jalan mudah la ni.. waaaaaaaaaaaah ah ah ahahahhahaaâ„¢jawapan perlulah diberikan dalam bentuk objektif, ya atau tidak Quote Share this post Link to post Share on other sites
Ancient One 3 Report post Posted July 12, 2005 aku paham maksud ko. dalam windows, subsystem utama adalah win32. biasanya kalau kita nak run application selain win32, kena ader subsystem dia laa, contohnya os/2 subsystem untuk run os/2 nyer program, posix subsystem dan sebagainya. so kalau hang nak 'wine untuk linux' dalam windows, hang kena laa cari/buat, e.g, 'elf subsystem' untuk windows so bleh laa kita run elf exe dalam windows. aku tak tau ader orang tengah develop ke tak. pandai2 laa cari sendiri..kalau hang nyer kod tak guna linux specific functions atau libraries yang khas hanya ada untuk linux sistem payah gak nak convert. kalau kod hang guna std c senang jer tuh. rajin2 laa membaca Quote Share this post Link to post Share on other sites
azuan 2 Report post Posted July 12, 2005 rajin2 laa membaca←baik cikgu Quote Share this post Link to post Share on other sites