Compile a Plugin with MingW
#2

Hehe, I was trying to compile helloworld on CodeBlocks few weeks ago and got the same errors

To fix errors about __int64, size_t, etc. go to Project -> Build options -> Compiler Settings, #defines tab and add these defines:
Код:
HAVE_STDINT_H
__need_size_t
With this you don't need to change anything in SDK files.

And about "Plugin does not conform to architecture." error.
First go to Project -> Properties -> Build Targets tab and select "Create .DEF exports file".
Then go to Build Options again but now you need Linker Settings tab, put this line to Other Linker Options:
Код:
-Wl,--kill-at --def=name_of_def_file.def // don't forget to change the name
Then build again.

If you don't have .def, build the project, then find def file and change its name in linker options.

Good luck!
Reply


Messages In This Thread
Compile a Plugin with MingW - by xMine - 19.10.2009, 20:34
Re: Compile a Plugin with MingW - by Zeex - 20.10.2009, 04:31
Re: Compile a Plugin with MingW - by xMine - 20.10.2009, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)