This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm trying to create a very simple DLL using NetBeans 7.3.1, C++(with MinGW64 TDM and G++ 4.7.1). When I change the Linker->General->Output to an absolute path like "d:/kaka/libCppDynamicLibrary_1.dll" or "d:\kaka\libCppDynamicLibrary_1.dll" I get the following errors: "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1' rm -f -r build/Debug rm -f /d/kaka/libCppDynamicLibrary_1.dll make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1' CLEAN SUCCESSFUL (total time: 254ms) "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1' "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk /d/kaka/libCppDynamicLibrary_1.dll make[2]: Entering directory `D:/kaka/CppDynamicLibrary_1' make[2]: Leaving directory `D:/kaka/CppDynamicLibrary_1' make[2]: *** No rule to make target `d:/kaka/libCppDynamicLibrary_1.dll'. Stop. make[1]: *** [.build-conf] Error 2 make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1' make: *** [.build-impl] Error 2 However, If I keep the Linker->General->Output as default: ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}libCppDynamicLibrary_1.${CND_DLIB_EXT} works ok. So.. seems there is a bug when the user tries to specify an absolute path to output the DLLs. Please, fix it. Thanks.
Use MinGW style paths: /d/kaka/libCppDynamicLibrary_1.dll
(In reply to Alexander Simon from comment #1) > Use MinGW style paths: > /d/kaka/libCppDynamicLibrary_1.dll Neither works: "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1' rm -f -r build/Debug rm -f /d/kaka/libCppDynamicLibrary_1.dll make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1' CLEAN SUCCESSFUL (total time: 251ms) "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1' "d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk /d/kaka/libCppDynamicLibrary_1.dll make[2]: Entering directory `D:/kaka/CppDynamicLibrary_1' make[2]: Leaving directory `D:/kaka/CppDynamicLibrary_1' make[2]: *** No rule to make target `d:/kaka/libCppDynamicLibrary_1.dll'. Stop. make[1]: *** [.build-conf] Error 2 make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1' make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 303ms)
Did you install msys? Examlpe of build log in NB 7.4: "/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf make.exe[1]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' rm -f -r build/Debug rm -f /c/Users/alex/qq.dll make.exe[1]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' CLEAN SUCCESSFUL (total time: 2s) "/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe[1]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' "/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk /c/Users/alex/qq.dll make.exe[2]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' mkdir -p build/Debug/MinGW-Windows rm -f build/Debug/MinGW-Windows/newfile.o.d gcc -c -g -MMD -MP -MF build/Debug/MinGW-Windows/newfile.o.d -o build/Debug/MinGW-Windows/newfile.o newfile.c mkdir -p /c/Users/alex gcc -o /c/Users/alex/qq.dll build/Debug/MinGW-Windows/newfile.o -shared make.exe[2]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' make.exe[1]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2' BUILD SUCCESSFUL (total time: 4s)