Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: stahta01 on July 11, 2007, 06:26:52 pm

Title: Some rules on how to use sdk.h in a plugin
Post by: stahta01 on July 11, 2007, 06:26:52 pm
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
Title: Re: Some rules on how to use sdk.h in a plugin
Post by: killerbot on July 11, 2007, 08:36:22 pm
I will pm you some answers ;-)
Title: Re: Some rules on how to use sdk.h in a plugin
Post by: Greatwolf on September 13, 2010, 07:09:44 am
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.
Title: Re: Some rules on how to use sdk.h in a plugin
Post by: ironhead on September 13, 2010, 06:11:01 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)?
Title: Re: Some rules on how to use sdk.h in a plugin
Post by: stahta01 on September 13, 2010, 06:25:58 pm
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.