User forums > Using Code::Blocks

how to add new functions to library using code::blocks

(1/2) > >>

amit14:
how do I add new functions to the standard library in code:: blocks or create my own library

BlueHazzard:

--- Quote ---how do I add new functions to the standard library in code:: blocks
--- End quote ---
codeblocks has no standard library, codeblocks is not a compiler nor a standard library. Codeblocks is only a IDE that can use a lot compilers. And this compilers can use a lot libraries...


--- Quote --- create my own library
--- End quote ---
what is a library in your understanding? A shared library? A static library? Only a header file? What programming language are you using? In what programming languages this library should be accessible?
What operating system are you using? What compiler are you using?

amit14:
I am using c language
I read that we can add functions to the standard library so that we don't need to define them in every program
like we can add function to calculate factorial of a number to the math.h file
can't that be done in code::blocks

stahta01:
If you have yet to learn the answer to these questions; then, you do not know enough to do it.

What operating system (OS) are you using?
What compiler are you using?

And, if your book or teacher told you to try to add functions to the "standard" library then you should assume the book or the teacher is wrong a lot of the time.

You could create a "user" library and add functions to it safely. But, till you learn what a compiler and OS is no one can help you on creating a library.

Tim S.

amit14:
I am using Windows 7 and code blocks for writing my programs
and yes that book said to create the user library and then to add functions to it but it also said to add the function for calculating factorial in the math.h header file

Navigation

[0] Message Index

[#] Next page

Go to full version