Jump to content
Sign in to follow this  
mus3na

Compiler Option

Recommended Posts

ok aku just nak tau ape compiler option yg kite kena specify supaya compiler tu ignore all warning message and linker error. sebab aku compile source dia stop bila banyak sangat warning and linker error.

biasa kita pakai c:\xxx\gcc namefile.c <-- ni saja kan nak compile....

so aku rasa mesti ade option cam ni;

c:\xxx\gcc -xxx namefile.c <-- so dia akan teruskan compile walaupun banyak warning or linker error.

ni semua compiler yg aku ade:-

Microsoft Visual C/C++ 2003

Microsoft Visual Studio 2005 Beta 1

Dev C++ 5 beta 1

Share this post


Link to post
Share on other sites

pelik gak, aku dah pakai /w nye option, tapi still compiler stop. hemmm...

soalan tambahan! Visual C nye syntax ngan C punya syntax sama ke lain. maksud aku boleh ke pure C program (cam yg ade dalam buku) compile pakai Visual C. Sorry la aku blaja programming dari buku je takde guru.

Share this post


Link to post
Share on other sites

soalan tambahan! Visual C nye syntax ngan C punya syntax sama ke lain. maksud aku boleh ke pure C program (cam yg ade dalam buku) compile pakai Visual C. Sorry la aku blaja programming dari buku je takde guru.

syntax dia sama. Cuma bila nak compile guna compiler yg berbeza memerlukan proprocessor directive yg berbeza.

Share this post


Link to post
Share on other sites

pelik gak, aku dah pakai /w nye option, tapi still compiler stop. hemmm...

kemungkinan besar ada error kat source code. fix the error baru compile.

/w untuk disable warnings bukannya error

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...