Author Topic: Compiling and linking auto-generated files from SWIG in Code::Blocks  (Read 5901 times)

Offline Kat B

  • Multiple posting newcomer
  • *
  • Posts: 11
Code::Blocks is awesome! Sadly, I am not as awesome :( Everything (so far) works a treat! Now I want to do something more, and I'm struggling to figure out how to do it in Code::Blocks.

Following the instructions on the wiki page: http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system I have managed to make SWIG work. Yay! :D

So the auto-generated file gets compiled.

Where (how, when, what, why) do I put in extra compilation/linking command in Code::Blocks so the compiler/linker then puts it all together to create a DLL?

I'd like the original compiler and linker settings to remain, I just want to add an extra command (or two) that tells the compiler/linker that this file should end up producing a DLL, separate from the other DLL it is also creating.


Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: Compiling and linking auto-generated files from SWIG in Code::Blocks
« Reply #1 on: August 25, 2011, 09:40:53 am »
Maybe in post-build step?
(project build options, pre/post build steps)