Re: [Dev-C++] How do you compile a single file at a time?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luigi S. <gi...@li...> - 2001-07-31 01:44:25
|
Hi Paul, I've got two hints for you: 1) Use Dev C++: - start Dev C++ - do not open your 50 file project, instead open the file you wish to compile - use "Execute-Compile" (or click on the "compile project" icon). The compiling results should give you at least one error because Dev was unable to make an executable out of the single file that you asked to compile. 2) directly use gcc - enter a DOS box (and make sure that gcc is in your path) - run the command: "gcc -c foo.c" or "g++ -c bar.cpp" I personally use solution 2. To make it easier I wrote a batch file that allows you to compile a single file, from the command line, by the syntax: "cxx foo.c", if you are interested you can find it among the "xtools" in the package section of the Dev-C++ Resource Site (www.bloodshed.net/dev/) Hope this helps. At 23.40 28/07/01 -0700, you wrote: >I have a project with about 50 files in it and I >need to be able to compile just a single file at >a time, but Bloodshed C++ doesn't seem to let me >do this. There is only the 'compile' menu item and >it compiles all files every time. This is very slow. > >So how do you compile a single file at a time??? > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan |