473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

creating gcc.bat in vista i'm new at this (very)

i'm using c for dummmies which is informative but when trying to create gcc.bat it tells me access denied i've created path i'm the administrator need help please very much appreciated people thnks so much! sorry forgot to mention i'm using vista doh!
Sep 17 '07 #1
13 5825
epots9
1,351 Expert 1GB
vista is special that way, don't double click the bat file. Right click then select Run As Administer, and it'll open.

your probably wondering why? cuz your account is an admin, thats cuz vista doesn't trust you (or wants to make things harder).
Sep 17 '07 #2
trying to set up a c compiler and need to create gcc.bat (batch file) but cannot says access denied! please help!!!!
Sep 17 '07 #3
C:\Users\billo\Documents\prog\c\learn>goodbye
'goodbye' is not recognized as an internal or external command,
operable program or batch file. this is the message i recieve any ideas anyone?
Sep 17 '07 #4
think i've lost some of path and can't retrieve reads path as system variable and value reads ;c:\MinGW\bin all within system properties in enviroment variables please help i've always wanted to start programming please help me acheive my dream it means alot!!!!
Sep 17 '07 #5
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>goodbye
'goodbye' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>cd goodbye
The system cannot find the path specified.

C:\Users\billo>cd goodbye.c
The system cannot find the path specified.

C:\Users\billo>gcc -v
Reading specs from /mingw/lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c++,f77,objc --disable-win32-registry --disable-shared --enable-sjlj-
exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)

C:\Users\billo>




hope this helps people please help i'm puling my hair out really want to do this
is any of this right?

many thanks
Sep 17 '07 #6
pbmods
5,821 Expert 4TB
Moving to the Windows forum....
Sep 17 '07 #7
Nepomuk
3,112 Expert 2GB
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>goodbye
'goodbye' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>cd goodbye
The system cannot find the path specified.

C:\Users\billo>cd goodbye.c
The system cannot find the path specified.

C:\Users\billo>gcc -v
Reading specs from /mingw/lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c++,f77,objc --disable-win32-registry --disable-shared --enable-sjlj-
exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)

C:\Users\billo>




hope this helps people please help i'm puling my hair out really want to do this
is any of this right?

many thanks
Does
Expand|Select|Wrap|Line Numbers
  1. C:\Users\billo>dir
show the file? You know, cd means "change directory", so it will only work, if "goodbye" is a directory. What you might want to do is ./goodbye if "goodbye" is a c-program (as "goodbye.c" suggests) and you've compiled it.

Greetings,
Nepomuk
Sep 18 '07 #8
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>./goodbye
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>

think i need to create the gcc batch file for compiling but cant and it says access denied 0 new files copied in the cmd

i know i'm a pain in the arse sorry but really want to do this!
Sep 18 '07 #9
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>./goodbye
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>goodbye
'goodbye' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>gcc -v
Reading specs from /mingw/lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c++,f77,objc --disable-win32-registry --disable-shared --enable-sjlj-
exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)

C:\Users\billo> i'm trying to compile but how when it doesn't create the gcc batch file i will not give up this will not defeat me .... i hope ! i've heard vista is a bitch with mingw so also going to try msvc++ will this pose less problems?
Sep 18 '07 #10
Nepomuk
3,112 Expert 2GB
What output does
Expand|Select|Wrap|Line Numbers
  1. C:\Users\billo> dir goodbye*
  2.  
have? Cause it thinks, that the file isn't there...

Greetings,
Nepomuk

PS.: Is there a file "a.out" by any chance? If not, what is the exact command you used, to compile your program?
Sep 18 '07 #11
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>./goodbye
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>goodbye
'goodbye' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\billo>gcc -v
Reading specs from /mingw/lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c++,f77,objc --disable-win32-registry --disable-shared --enable-sjlj-
exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)

C:\Users\billo>Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\billo>dir goodbye*
Volume in drive C is Vista
Volume Serial Number is 96CA-7C66

Directory of C:\Users\billo

File Not Found

C:\Users\billo>

this is the outcome does this make it clearer or not i'm so desperate to do this so anyone please help i want to learn this stuff!
Sep 19 '07 #12
Falina
1
I'm not an expert but to me it works. I did this:

1. install MinGW compiler (on c:\MinGW)


2. open a "command prompt" window and type the next commands:

cd\windows //place urself in your "windows" directory

copy con gcc.bat //press Enter
@c:\MinGW\bin\gcc %1 %2 %3 %4 %5 %6
/*c:\MinGW\bin\gcc or whichever is ur path to gcc.exe on ur pc then press Enter*/
^Z //press F6 and ^Z appear, then press Enter

gcc -v // many lines should appear = works :D



3. better open a new commander window n and go where ur .c files are, for example:

cd "desktop" //press enter
cd c // press Enter
gcc hi.c -o hi
/*will compile ur hi.c program, -o is little o from "obvious", hi is the name ur .exe file will have after hi.c is compiled and linked which is done together in this compiler*/

hi //press enter

and now u should see what ur program hi.c returns/does.

So from now on every time u want to see what ur prog does, position urself where ur .c progs are, complite ur prog wt the above command and then access it through the name u gave in the -o option.

Hope it helps someone!
Sep 28 '07 #13
windows is so shit so gonna install sabayon linux instead not enough control in windows especially vista! thanks everyone i'm going to start to live the dream cheers speak to you soon. here goes long live linux!!!!!!!!!
Sep 30 '07 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
56
by: Squishy | last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got errors stating that VS2005 was not compatible with Vista. Microsoft......please pull your finger out of my ass and tell...
0
by: salad | last post by:
I took the Bart down to San Francisco and joined a couple thousand other nerds to watch the Vista/Office launch. The receptionist was quite pleasant and getting the event packets a smooth...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
10
by: hugh welford | last post by:
Hi Have just installed IIS7 on Vista and am trying to access a .mdb file through ASP. Getting server error. I think the problem is in the file permission. Under XP Pro/IIS6 is used to have to...
2
by: Vighneswar | last post by:
Hi All Please let me know is there any way to clear the address bar history ( Typed URLs) of Firefox browser programmatically. Deleting 'index.dat' under profiles folder of firefox will delete...
11
by: =?Utf-8?B?S3VlaXNoaW9uZyBUdQ==?= | last post by:
I am running Visual studio 2003 with framework 1.1 on a vista platform. However it runs very slow in debug mode, especially while it is loading dlls. What is the problem? Is there a compatibility...
8
by: =?Utf-8?B?WVhR?= | last post by:
Hello, I used Image.FromFile method to get lots of images from files, it's very slow in Windows Vista, but it's fast in Windows XP! could anyone please tell how to speed in Windows Vista? thank you
1
by: techtonator | last post by:
Hi, I have a laptop with Vista Home Premium 64 bit installed. It also has a recovery partition. Now since this can be used to restore the system back to its factory state, HP/Microsoft didn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.