🔒 Locked
Command Line Compiling
Advertisement
Original Post
OK, I have used GCC on RedHat Linux 8 a couple times. Now, I would like to use command-line compiling in Windows using the Dev-C++ compiler.... is that possible? If so, how can I set up my machine so it can use it similar to Sun''s SDK for java....you know how that works...you just set up the paths in autoexec.bat and you can type in
> javac file.java
...compiles
> java file
so, how can i set it up so i can use maybe GCC or C++ as commands to compile from DOS?
You just need to add the location of gcc and the other executables to your path. So if you installed Dev-C++ to C:\DevCPP, the compilers might be in C:\DevCPP\bin (or something like that - it''s been a while since I''ve used Dev-C++). Just add that directory to your path, and you''re set.
I''m not sure on the specifics of the Dev-C++ compiler, but the Borland command line compiler has instructions on how it works so you could go to their site and apply it to Dev-C++ or maybe even give Borland a shot
gcc will detect if it''s a C or C++ file (by the extension, .c for C files, .c++, .cc, .cpp for C++).
You also need to set the INCLUDE and LIB variable to point to your includes and libraries. Do it just the same as you would for the path.
codeka.com - Just click it.
You also need to set the INCLUDE and LIB variable to point to your includes and libraries. Do it just the same as you would for the path.
If I had my way, I''d have all of you shot!
codeka.com - Just click it.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement