Thread: NetBeans + Cygwin driving me insane

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    2

    NetBeans + Cygwin driving me insane

    Ok, I recently downloaded NetBeans to use as an IDE, but I cannot make NetBeans run my C++ application. I'll try to summarize, any help would be greatly appreciated:

    1) I can build+link just fine. I am using all the Cygwin GNU stuff (g++, gdb, ld, etc).
    2) I can go into Cygwin and manually run my application.
    3) Running through NetBeans results in exit code 53 (something about network path not found).
    4) I can build and run a sample program that comes with the NetBeans IDE.
    5) I am linking a couple of DLLs. I'm not clear on if they are statically, or dynamically linked, but after searching the internet I thought maybe one of them is dynamically linked and the NetBeans IDE cannot find it. But my PATH variable is pretty much the same in Cygwin, and in Windows. (one of the dlls is a postgresql library, the other basically a math library)
    6) I tried playing with pretty much all the options in NetBeans (additional library search directories, extra compiler/linker options such as --enable-shared etc., but nothing seems to work).

    I've wasted like 4 hours trying to figure this out. Please help if you have any ideas!! Thanks.

  2. #2
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103
    Go ahead and try Code::Blocks @ http://www.codeblocks.org/
    In contrary to netbeans it is completely dedicated to C/C++. I also downloaded netbeans two days ago, after already having Code::Blocks and I also had problems, and let me tell you that I prefer Code::Blocks.
    Be easy on me...only 14

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    If you really do want to use Netbeans for C++ development, then read this article on Netbeans C/C++ Pack. It suggests the use of the MinGW port instead of Cygwin.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    2
    Thanks for the replies...

    CodeBlocks + MinGW tools made it far easier to get running for some reason.

    I ended up getting it to work with NetBeans and Cygwin GNU tools as well (just because it was bugging the heck out of me). The only difference is I have to include 2 postgresql dlls with NetBeans (postgres.lib and libpq.dll), but in CodeBlocks I can just include postgres.lib. I'm not sure I understand why. Also NetBeans seems to have issues with spaces any paths.

    CodeBlocks' IDE seems better overall so I'll probably work with that.

  5. #5
    Registered User
    Join Date
    Mar 2005
    Location
    Freeport, IL
    Posts
    32
    Code::Blocks is a nice IDE, I have been quite happy with it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. from dev-c++ mingw to netbeans cygwin
    By yahn in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 08:18 AM
  2. MSXML driving me insane!
    By bling in forum Windows Programming
    Replies: 4
    Last Post: 09-30-2008, 12:23 PM
  3. Driving me insane - Debugger
    By Hugo716 in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2006, 11:09 AM
  4. Conceptually simple & driving me insane
    By cboard_member in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2006, 01:35 PM
  5. VC++ tutorial driving me insane!
    By Swaine777 in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 08:35 AM