cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
dynamic to static
dynamic to static
Feb 10, 2021 at 10:01am UTC
mxkxx
(20)
how can i change my settings from dynamic to static linking??
iam using code blocks.
Feb 10, 2021 at 10:15am UTC
lastchance
(6980)
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.