Error in Autogenerated Makefile for Dll Sample Project
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
Version: 5.7.1 w TDD-GCC 4.8.1
OS version: Windows 8.1 64 bit
Error reported: Sample DLL Project (C) will not build
Stack trace: None
Reference: Forum post
Affects: C DLL Projects (C++ Not Affected)
Steps needed to reproduce the problem:
ld.exe Can't open output def file
ld.exe Error closing file `'
collect2.exe [Error] ld returned 1 exit status
Makefile.win recipe for target 'DllTest4.dll' failed
DEF = libDllTest4.def
STATIC = libDllTest4.a
$(CC) -shared $(LINKOBJ) -o $(BIN) $(LIBS) -Wl,--output-def,$(DEFFILE),--out-implib,$(STATICLIB),--add-stdcall-alias
Diff:
Fixed as of 5.8.0.
The affected function was TCompiler.CreateDynamicMakeFile, which used old makefile parameter names when Project.Options.useGPP was false (in other words, when a C project is compiled).