|
-
Oct 20th, 2004, 10:30 AM
#1
Thread Starter
Frenzied Member
command line compiler
I am looking for a command line compiler to use at the university for variuos projects. I have tried Cygwin and MinGW but I couldn't get them to work properly...any one know any good command line compilers and linkers for Windows?
-
Oct 20th, 2004, 11:01 AM
#2
Fanatic Member
All compilers can be used from the command line - the IDE just does the command line for you.
-
Oct 20th, 2004, 11:59 AM
#3
Thread Starter
Frenzied Member
Yes but do you know any free for Windows?
-
Oct 20th, 2004, 01:37 PM
#4
Microsoft offers the command line version of their 7.1 tools for free, search the forum.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 20th, 2004, 01:50 PM
#5
Thread Starter
Frenzied Member
I downloaded the Visual C++ Toolkit 2003.(Can it work with ANSI C?)
Also, how do you tell it where the include dir is, since i'm getting errors of it not finding header files?
-
Oct 20th, 2004, 01:54 PM
#6
cl /?
should give you a list of all compiler switches, including how to set the include dir. In addition, I think the INCLUDE environment variable is used for looking up include directories, and the LIB envvar for static libraries.
It can handle ANSI C89, not C99.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 20th, 2004, 02:05 PM
#7
Thread Starter
Frenzied Member
I have tried that, but either i'm blind or it isn't there
-
Oct 20th, 2004, 02:13 PM
#8
It's under the preprocessor section of /?, in the right column. /I is the switch you need.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 20th, 2004, 02:31 PM
#9
Thread Starter
Frenzied Member
It still won't compile it. Giving me an Access Denied error
Code:
cl /I <C:\program files\Microsoft Visual C++ Toolkit 2003\include> main.c
-
Oct 20th, 2004, 02:35 PM
#10
You have to use " for quoting, < and > are for redirection.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 20th, 2004, 02:58 PM
#11
Thread Starter
Frenzied Member
By using only the " gives me the error on missing headers
-
Oct 20th, 2004, 05:04 PM
#12
Which headers? For windows.h and related, I think you have to install the Windows SDK separately.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 20th, 2004, 08:53 PM
#13
If you want to compile as C code, pass the /TC option to the compiler. I think C++ (/TP) is the default.
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Oct 20th, 2004, 11:49 PM
#14
Thread Starter
Frenzied Member
I was trying to compile a simple hello world program using iostream.h, but I'll try the /TC option.
-
Oct 21st, 2004, 03:40 AM
#15
The VC++2003 compiler no longer includes the non-standard .h C++ headers, use the non-.h versions:
#include <iostream>
Don't forget about the namespace std.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 21st, 2004, 11:30 AM
#16
Thread Starter
Frenzied Member
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|