compilation - Compile C source file using Command Prompt -


i having trouble while using codeblocks-16.01mingw-setup.exe - installed in file path not contain spaces - when trying compile @ comand prompt. beginner's guide recommended using following line in command prompt:

gcc cards.c -o cards 

for source file named cards.c (on desktop). gives error

'gcc' not recognised internal or external command, operable program or batch file. 

when trying figure out, have found out can drag , drop files in command prompt , specifies path. doing gcc.exe taken f:\programare\codeblocks\mingw\bin\gcc.exe , adding c source file c:\users\dream\desktop\cards.c gives error

as.exe - system error: program can't start because libintl-8.dll missing computer. try reinstalling program fix problem. 

i've reinstated codeblocks no avail. i've tried matching paths of compiler source file, bringing source code compiler was, again no avail.

please me understand issue. must file named libintl-8.dll right there gcc.exe is, trying add in command prompt gives syntax error.

gcc trying find dll file in working directory, need cd directory cd /d f:\programare\codeblocks\mingw\bin.

dynamic-link library search order (windows)

  1. the directory specified lpfilename.
  2. the system directory. use getsystemdirectory function path of directory.
  3. the 16-bit system directory. there no function obtains path of directory, searched.
  4. the windows directory. use getwindowsdirectory function path of directory.
  5. the current directory.
  6. the directories listed in path environment variable. note not include per-application path specified app paths registry key. app paths key not used when computing dll search path.

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -