News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Xchat windows plugin

Started by Pix3l, October 23, 2006, 05:13:08 PM

Previous topic - Next topic

Pix3l

I have a problem compiling an xchat plugin, i create the DLL project and add the files (xchat-plugin.h, myplugin.c).

When i compile it i have no problem but when i try to load it in xchat i get this message :

No xchat_plugin_init symbol; Are you sure that are really an xchat plugin?
(or something like this, because i translate this message from italian)

I read the doc for make plugin in C at the xchat official site (http://www.xchat.org/docs/plugin20.html) and i compile the example but it doesn't work correctly!

Please are there someone can help me on make an xchat plugin (it's a dll).

MortenMacFly

Quote from: Pix3l on October 23, 2006, 05:13:08 PM
I read the doc for make plugin in C at the xchat official site (http://www.xchat.org/docs/plugin20.html) and i compile the example but it doesn't work correctly!
I fail to see how this is related to C::B at all. You'd better ask the XChat guys... don't you?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pix3l

The only thing i can ask to xchat guy is how to make a plugin, but him can't help me on how to compile it with code::blocks!

The only thing i need to know is how i can compile a DLL (plugin for xchat) with code::blocks and maybe how to link a def file for it!

I try to compile the a plugin with Dev-Cpp without success and with code::blocks too!

Maybe are there a bug in the compiler or in the code::blocks envirioment?

David Perfors

Compiling a DLL could be done by making a new DLL (Dynamic Link Library) project. How you can link a def file I don't know...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

mandrav

Quote from: Pix3l on October 23, 2006, 07:41:39 PM
I try to compile the a plugin with Dev-Cpp without success and with code::blocks too!

Maybe are there a bug in the compiler or in the code::blocks envirioment?

Yes, you can't compile it anywhere and it's a C::B bug. Right...
Be patient!
This bug will be fixed soon...

Pix3l

ok thanks for the reply!

I try to compile the plugin with other compiler and let you know if they have success!