News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Some rules on how to use sdk.h in a plugin

Started by stahta01, July 11, 2007, 06:26:52 PM

Previous topic - Next topic

stahta01

FYI:

I am trying to figure out the rules on including sdk.h in a plugin.

Here is my guess at the rules; note, I am not a great c++ programmer and hope to have feedback on my guesses; enough to confirm them before I put the rules on the wiki.

1. use " #include <sdk.h> " not " #include "sdk.h" " in a plugin.
2. It is recommended not to use "#include <sdk.h>" in a header file.
3. Because "#include <sdk.h>" includes the "<wx/wxprec.h>" it is not necessary to include both "<wx/wxprec.h>" and "<sdk.h>"

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

killerbot


Greatwolf

where do you get the sdk.h and other header files for C::B sdk? Is it generated as part of the C:B build process when you compile the trunk?

This should really be indicated somewhere, like on stickie forum or wiki etc, so new plugin developers know how to get started and where to look.

ironhead

Quote from: killerbot on July 11, 2007, 08:36:22 PM
I will pm you some answers ;-)

Should they not be made public so that all can see (i.e. in the wiki as Tim mentioned)?

stahta01

#4
Please DO NOT Hijack Threads!!!!

Please READ the directions TO BUILD from source Code::Blocks for your OS!!
You should then know where "sdk.h" is located.

Directions for MS Windows users
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]