FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Hello World build fails with no error message [SOLVED]

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
synachi



Joined: 01 Nov 2009
Posts: 2

PostPosted: Sun Nov 01, 2009 11:57 pm    Post subject: Hello World build fails with no error message [SOLVED] Reply with quote

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
View user's profile Send private message
synachi



Joined: 01 Nov 2009
Posts: 2

PostPosted: Mon Nov 02, 2009 3:46 am    Post subject: Reply with 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
View user's profile Send private message
Vladimir Voskresensky
Posted via mailing list.





PostPosted: Mon Nov 02, 2009 5:57 am    Post subject: Hello World build fails with no error message. Reply with quote

Hi,
Thanks for resolving the issue Smile
(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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB