As you can clearly see in the output the option "--def" is not supported by gcc...
are you ever planing to go back to msvc?
if not, why are you using def files and not simply use "__declspec(dllexport)" in your source? (
http://stackoverflow.com/a/21902439)
i don't know any option for gcc to use def files, and this is also no gcc support forum. It is a c::b support forum, so if you find a option to use def files with gcc and want to know how to use it with c::b then we can help you better...
PS.: i searched a bit and according some sites you need to use a thirparty tool to use def files with gcc:
http://www.boyunjian.com/do/article/snapshot.do?uid=1013034473452214461 so you need a post build step to make your dlls. You can make a post build step in Project->Build Options ->Pre/Post build steps->Post build step.
The Variables you can use in this post build steps are described here:
http://wiki.codeblocks.org/index.php?title=Variable_expansionso you need a postbuild line like this (no waranty, i can't test it, because no windows, and also not a expert with this kind of sorcery )
dllwrap -o $(TARGET_OUTPUT_BASENAME).dll --driver-name c++ --def DEF_FILE $(TARGET_OBJECT_DIR)\$(TARGET_OUTPUT_BASENAME).o $(TARGET_OUTPUT_FILE) -Wl,--enable-stdcall-fixup