Jump to content

gcc issue

- - - - -

  • Please log in to reply
4 replies to this topic

#1
newprog

newprog

    Newbie

  • Members
  • Pip
  • 3 posts
hey ,

I have just started learning the language C with the help of C for dummies . M trying to make gcc work in windows , the following are the steps I have followed in command prompt & the problems m facing :-

in c:\windows i type "copy con gcc.bat" (wtq)

then i type :- @c:\Dev-Cpp\bin\gcc %1 %2 %3 %4 %5 %6

the error message it gives is access is denied , <0> files copied .

my os is windows 7 starter

pls help !

thnx

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
What are the permissions on that folder? Also, if you installed gcc as part of Dev-CPP, you should really download the latest version of MinGW, and update the path environment variable so you aren't running a bat file (you'll later have far more than 6 parameters to pass).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
newprog

newprog

    Newbie

  • Members
  • Pip
  • 3 posts
hey thr folder permission is read only , thats the problem when i try changing it , it doesnt let me ... any solutions ? .. will try using MinGW as you have suggested

thnx

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
That's because you don't have permissions to create a file in C:\Windows. What you should be doing is updating your path environment variable.
Django/Python on Windows — Setting PATH Environment Variable « Useful Stuff.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
newprog

newprog

    Newbie

  • Members
  • Pip
  • 3 posts
hey thnx , it worked !




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users