dynamic to static

how can i change my settings from dynamic to static linking??
iam using code blocks.
I've never used an IDE for c++ but the manual for Codeblocks is here:
https://www.codeblocks.org/docs/manual_codeblocks_en.pdf

Probably you want to add a linker option (which may be under "Compiler and debugger settings); something like
-static


At least, that's what I add for the g++ compiler at the command line.


Personally, I'd send your teacher your source code and let him/her compile it themselves. Just sending an executable hides awfully bad code.

BTW - don't just start new threads at a whim.
Topic archived. No new replies allowed.