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.
Create Pi sample project Clean&Build Run it => runs ok as "Serial" config switch to the next configuration, i.e. Pthreads (i.e. from toolbar combox or from context menu) Clean and Build, try to Run it => error dialog /home/user/demo/Pi/dist/Pthreads/GNU_With_Dbx-Linux/pi does not exist or is not an executable.
Cannot reproduce the bug.Please provide IDE message log.
can not reproduce on Solaris and Linux at work. Need to check on laptop...
I've checked on Linux. The problem is that although Clean&Build writes "Build Successful", in fact there is a message in Output: mkdir -p dist/Pthreads/GNU-Linux gcc -o dist/Pthreads/GNU-Linux/pi_2 build/Pthreads/GNU-Linux/pi_pthreads.o build/Pthreads/GNU-Linux/pi_pthreads.o: In function `main': /home/vv159170/SolStudioProjects/Pi_2/pi_pthreads.c:71: undefined reference to `pthread_create' make[2]: Leaving directory `/home/vv159170/SolStudioProjects/Pi_2' make[1]: Leaving directory `/home/vv159170/SolStudioProjects/Pi_2' BUILD SUCCESSFUL (total time: 176ms) So, binary is not created. And I have to go into properties and add Posix Threads library to resolve the issue
Can we update sample project to include library by default?
I mean for appropriate configurations
fixed, change set: http://hg.netbeans.org/cnd-main/rev/42a90c8c1178
Integrated into 'main-silver', will be available in build *201603300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/42a90c8c1178 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #258484 Pi sample project can not be run/debug
v.
Verified in patch from staging UC.