Code::Blocks Forums

User forums => Help => Topic started by: pichlerd on February 20, 2011, 10:30:07 pm

Title: Compile only project
Post by: pichlerd on February 20, 2011, 10:30:07 pm
I have a .cpp project where I need to compile it only into an .o file and I do not wish to attempt to link it into an executable file.  I have a post compiler script that needs to execute after a clean compile.  Any help would be appreciated. I am using the GNU GCC Compiler option.

- Thanks
Title: Re: Compile only project
Post by: Jenna on February 20, 2011, 10:47:06 pm
There are twopossible solutions I see:
1. right click on your cpp-files in the management pane, chose Properties, go to the Build tab and uncheck the
Link file checkbox,
2. make a copy of the Gnu gcc toolchain ("Settings -> Compiler and debugger -> Global compiler settings -> GNU GCC Compiler -> Copy"), remove the linker executable in the toolchain executables tab and use this compiler for your project.
Title: Re: Compile only project
Post by: pichlerd on February 20, 2011, 11:03:48 pm
Nice!  I tried the first option and it does exactly what I needed it to do.
-Thanks for the quick response!!!

 :D