Author Topic: Compile only project  (Read 3493 times)

Offline pichlerd

  • Single posting newcomer
  • *
  • Posts: 3
Compile only project
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compile only project
« Reply #1 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.

Offline pichlerd

  • Single posting newcomer
  • *
  • Posts: 3
Re: Compile only project
« Reply #2 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