Author Topic: [SOLVED] dmd: Error: unrecognized file extension dll  (Read 5451 times)

Offline Zeex

  • Single posting newcomer
  • *
  • Posts: 2
[SOLVED] dmd: Error: unrecognized file extension dll
« 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.
« Last Edit: August 24, 2010, 01:24:10 pm by Zeex »

Offline Zeex

  • Single posting newcomer
  • *
  • Posts: 2
Re: dmd: Error: unrecognized file extension dll
« Reply #1 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.