| View previous topic :: View next topic |
| Author |
Message |
synachi
Joined: 01 Nov 2009 Posts: 2
|
Posted: Sun Nov 01, 2009 11:57 pm Post subject: Hello World build fails with no error message [SOLVED] |
|
|
I am currently trying to build the following code on an x86_64 running Linux:
| Code: |
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char** argv) {
printf("hello world\n");
return (EXIT_SUCCESS);
}
|
But when I tell netbeans to build, I get a build failed with absolutely no error message. The entire window just says:
| Code: |
BUILD FAILED (exit value -1, total time: 101ms)
|
I've never had a problem compiling c++ in the past (6.5.1 and earlier) on netbeans, but for some reason I can't seem to get it to work in 6.7. Additionally, the code works fine when compiled using make in the terminal. I have tried 6.8 beta and get the exact same error. Does anyone have any ideas / have ever seen this?
Thanks,
Brian
Last edited by synachi on Mon Nov 02, 2009 3:47 am; edited 1 time in total |
|
| Back to top |
|
 |
synachi
Joined: 01 Nov 2009 Posts: 2
|
Posted: Mon Nov 02, 2009 3:46 am Post subject: |
|
|
| After some beating my head against my desk, I found the problem. Apparently netbeans was trying to foreward X11 over the ssh connection. This can be solved by either calling netbeans with the "-J-Dcnd.remote.noX11=true" flag or by setting "X11Forewarding yes" in /etc/ssh/sshd_config. |
|
| Back to top |
|
 |
Vladimir Voskresensky Posted via mailing list.
|
Posted: Mon Nov 02, 2009 5:57 am Post subject: Hello World build fails with no error message. |
|
|
Hi,
Thanks for resolving the issue
(you didn't tell about remote build initially)
Btw, we plan to set
-J-Dcnd.remote.noX11=true
as default for 6.8 :-)
Thanks,
Vladimir.
synachi wrote:
| Quote: | After some beating my head against my desk, I found the problem. Apparently netbeans was trying to foreward X11 over the ssh connection. This can be solved by either calling netbeans with the "-J-Dcnd.remote.noX11=true" flag or by setting "X11Forewarding yes" in /etc/ssh/sshd_config.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|