Learnem Educational
May 18, 2012, 12:27:53 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Execute the c progmm code  (Read 1819 times)
Anonymous
Guest
« on: March 25, 2002, 02:44:52 PM »

:cry:
Pls help me.
I can't execute my c programming code.
I'm newbie in C.
when I execute my cc.bat file by Dos.
message from is bad command.

cc.bat look like that.
gcc -O3 -Wall -g -c %1.c
gcc -O3 -Wall -g %1.o libsv.a -o %1 -lpc

Thanks.
« Last Edit: January 01, 1970, 12:00:00 AM by Anonymous » Logged
The Nymph
Newbie
*
Posts: 6


View Profile
« Reply #1 on: June 04, 2002, 10:12:24 AM »

To execute a program in DOS, you have to give the file path.

For instance:
c:\\programming\coding\c\program.exe
« Last Edit: January 01, 1970, 12:00:00 AM by The Nymph » Logged
MrDeed
Newbie
*
Posts: 8


View Profile
« Reply #2 on: September 26, 2002, 08:54:31 AM »

Your problem is that you do not have GCC installed.

And you cannot install it either on your windows machine as it is for unix/linux. There is a linux environment for windows to download from cygwin however so you can do what you wanted.

Btw DJGPP is the port of GCC to windows.
« Last Edit: January 01, 1970, 12:00:00 AM by MrDeed » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!