User forums > Help

Compile only project

(1/1)

pichlerd:
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

Jenna:
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.

pichlerd:
Nice!  I tried the first option and it does exactly what I needed it to do.
-Thanks for the quick response!!!

 :D

Navigation

[0] Message Index

Go to full version