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.

Bug 150031 - MinGW: Can't start project if user added relative path into linker options
Summary: MinGW: Can't start project if user added relative path into linker options
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 09:58 UTC by soldatov
Modified: 2009-02-19 20:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2008-10-14 09:58:10 UTC
Windows XP, MinGW.

Scenario:
- Create C/C++ project
- Create Main C++ file in project
- Open 'Project Properties' window
- Add '../bin/test.exe' in Linker section ('Output' text field)
- Build project
- Run project
==> run failed
Comment 1 Leonid Lenyashin 2008-10-14 12:27:21 UTC
Please evaluate
Comment 2 soldatov 2008-10-15 08:32:32 UTC
Not a showstopper (We had this problem in NB6.1 also). Bug should be fixed in patch or next release.
Comment 3 Thomas Preisler 2008-10-20 22:39:21 UTC
Cannot reproduce with today's trunk code. I followed the steps as closely as I could and running the app works fine with
both external terminal and internal output window. I'm using MinGW. Here is output:
Running "C:\cygwin\bin\make.exe  -f Makefile CONF=Debug" in C:\Users\thp\Documents\NetBeansProjects\Application_3

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/thp/Documents/NetBeansProjects/Application_3'
/usr/bin/make  -f nbproject/Makefile-Debug.mk ../bin/test.exe.exe
make[2]: Entering directory `/cygdrive/c/Users/thp/Documents/NetBeansProjects/Application_3'
mkdir -p ../bin
g++     -o ../bin/test.exe build/Debug/Cygwin-Windows/newmain.o  
make[2]: Leaving directory `/cygdrive/c/Users/thp/Documents/NetBeansProjects/Application_3'
make[1]: Leaving directory `/cygdrive/c/Users/thp/Documents/NetBeansProjects/Application_3'

Build successful. Exit value 0.

Running "cmd.exe /c ..\bin\test.exe " in C:\Users\thp\Documents\NetBeansProjects\Application_3

Run successful. Exit value 0.

Please provide more detailed steps to reproduce if the bug is still present.
Comment 4 Thomas Preisler 2008-10-23 20:36:42 UTC
Closing as worksforme....
Comment 5 soldatov 2008-11-05 20:40:55 UTC
Running "D:\msys\1.0\bin\make.exe  -f Makefile CONF=Debug" in C:\tmp\Application_1

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/tmp/Application_1'
/usr/bin/make  -f nbproject/Makefile-Debug.mk ../bin/application_1.exe
make[2]: Entering directory `/c/tmp/Application_1'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/newmain.o.d
g++.exe    -c -g -MMD -MP -MF build/Debug/MinGW-Windows/newmain.o.d -o build/Debug/MinGW-Windows/newmain.o newmain.cpp
mkdir -p ../bin
g++.exe     -o ../bin/application_1 build/Debug/MinGW-Windows/newmain.o  
make[2]: Leaving directory `/c/tmp/Application_1'
make[1]: Leaving directory `/c/tmp/Application_1'

Build successful. Exit value 0.

Running "cmd.exe /c start sh "D:\netbeans-6.5rc2\cnd2\bin\dorun.sh" -p "[Press Enter to close window] " -f
"C:\DOCUME~1\SOLDAT~1.SOV\LOCALS~1\Temp\nbcnd_rc29890" ..\bin\application_1 " in C:\tmp\Application_1


Run failed. Exit value 127.

Comment 6 Thomas Preisler 2008-12-12 21:39:44 UTC
It is really weird. It does work fine for me:

I create an Application projet, add main C++ file, change linker output to ../bin/test, compile, link, and run:

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
rm -f -r build/Debug
rm -f ../bin/test.exe
make[1]: Leaving directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
CLEAN SUCCESSFUL (total time: 234ms)

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
/usr/bin/make  -f nbproject/Makefile-Debug.mk ../bin/test.exe
make[2]: Entering directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/newmain.o.d
g++    -c -g -MMD -MP -MF build/Debug/MinGW-Windows/newmain.o.d -o build/Debug/MinGW-Windows/newmain.o newmain.cpp
mkdir -p ../bin
g++     -o ../bin/test build/Debug/MinGW-Windows/newmain.o  
make[2]: Leaving directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
make[1]: Leaving directory `/c/Users/thp/Documents/NetBeansProjects/Application_4'
BUILD SUCCESSFUL (total time: 405ms)

I will mark it worksforme again. If you still see the problem, please specify you *exact* step from very beginning and
please also attach the project.