Code::Blocks Forums

User forums => Help => Topic started by: Zeex on August 24, 2010, 12:23:22 pm

Title: [SOLVED] dmd: Error: unrecognized file extension dll
Post by: Zeex on August 24, 2010, 12:23:22 pm
Hello,

I'm trying to make a DLL using D (I choose Dyamic Library in project settings) and dmd2 compiler, and I have only two files in my project. The .obj files are generated without any errors but when it tries to link them it prints "Error: unrecognized file extension dll". How do I fix this?  Which option should I change?

Thanks in advance.
Title: Re: dmd: Error: unrecognized file extension dll
Post by: Zeex on August 24, 2010, 01:23:15 pm
OK it seems I solved this problem.

In case someone else have it - go to Settings -> Compiler and debugger -> Choose Digital Mars D Compiler in compiler list-> Other Settings -> Advanced options button -> Commands tab -> Change "Link object files to dynamic library" command to "$linker -of$exe_output $link_options $link_objects $libs $link_resobjects", then re-build your project.