from dev-c++ mingw to netbeans cygwin

This is a discussion on from dev-c++ mingw to netbeans cygwin within the C++ Programming forums, part of the General Programming Boards category; I didn't think there would be a difference. I always thought C++ was C++ and that's why everyone used it. ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    137

    from dev-c++ mingw to netbeans cygwin

    I didn't think there would be a difference. I always thought C++ was C++ and that's why everyone used it. Apparently that isn't the case. I can't stand Dev-C++'s editor or the random build errors that come with projects such as DevIL. So, I figured I'd try Netbeans, since I really like their editor. Well, apparently cygwin doesn't even have iostream?? I don't know what is going on, but absolutely nothing is working. I did everything the netbeans website says to do and after I did that I don't even have the headers I need. So I copied the headers from dev-c++'s include into netbeans' and at least I have a few includes working. For some reason most of them still are not working. So, can anyone tell me what is up and what I need to do to fix this? Also, I can't find anywhere where it allows you to link to a DLL like Dev-C++ does. Does anyone know how to do that?

    Would I be better off just not using netbeans and getting a better editor? Does anyone know of an editor that is as nice as netbeans that will actually recognize datatypes (For some reason netbeans is telling me that bool is not a type and false and true are not keywords. It is also trying to tell me that namespaces don't exist at all.).

    After writing that last paragraph, I'm starting to think netbeans isn't worth it unless someone knows how to fix all this and it is easy. Also, I'd really appreciate it if you could recommend some nice editors. Thank you.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    download MingGW?

    or if you are a windows guy. Visual C++ is great. ( Ive been using for years )

    edit: Code::Blocks is a really good IDE as well. It is in constant developement also. new build almost every night. I have used it, and it has a good editor, and very handy features.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Hmmmm on my main developmental machine I actually have and use cygwin over minGW. MinGW (as the name implies) is kind of a barebones compiler. Cygwin is an entire environment and quite honestly the best cross-compiler I use (granted on Windows I still use MSVS 2008 to edit code). Your issues with cygwin may have something to do with the fact that its not properly installed, not properly configured, or just not compatible with your OS (though the vista problems that plague mingw seem not to hold true with cygwin).

    State the specific problem and I can try and help walk you through it. Cygwin is a pain in the neck for any novice to configure, and equally annoying for a pro. The advantage a pro would have over a novice is the ability to swiftly troubleshoot.

    I am willing to bet you need to fix your path variable. In any case, MSVC++ 2008 express is available from Micro$oft for free.

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    137
    I just did everything this website said: http://www.netbeans.org/kb/60/cnd/setup-Windows.html. I didn't forget to set the path variable. I don't know what else I need to set. And I have no idea why I don't have any of the headers that I need, but I can't find that on the website. I also only found one page on google about linking a dll and the answer that was given doesn't even seem to exist.

    I'm going to take a look at code blocks, but if you wouldn't mid, I'd really appreciate if you could help me get Cygwin working. I just don't know what I did wrong, but that's probably because I really don't know what I'm doing. I just followed that guide and hoped for the best.

  5. #5
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,627
    Yeah, C++ is just C++, but IDEs/compilers differ. But all compilers should compile the code correctly (unless you use extensions).
    It's also typically a bad idea to copy headers from one compiler/IDE to another.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    Quote Originally Posted by yahn View Post
    I just did everything this website said: http://www.netbeans.org/kb/60/cnd/setup-Windows.html. I didn't forget to set the path variable. I don't know what else I need to set. And I have no idea why I don't have any of the headers that I need, but I can't find that on the website. I also only found one page on google about linking a dll and the answer that was given doesn't even seem to exist.

    I'm going to take a look at code blocks, but if you wouldn't mid, I'd really appreciate if you could help me get Cygwin working. I just don't know what I did wrong, but that's probably because I really don't know what I'm doing. I just followed that guide and hoped for the best.
    Hmm. I've never had that problem with any of the many times I've installed cygwin. When you select packages to install, you should select gcc, g++, make, etc.

    Yes, you'll need to put gcc in your path something like:
    Code:
    C:\cygwin\bin\
    Also, you should place your cygwin "home" folder in the path
    Code:
    C:\cygwin\home
    Good luck
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  7. #7
    Registered User
    Join Date
    Nov 2005
    Posts
    137
    I don't have a cygwin home folder. What is that? Also, I don't see how any of these suggestions are going to solve the fact that it is not even recognizing bool as a type or namespaces at all.

  8. #8
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    when you use unix, for all your personal stuff, you typically have a "home" folder. On a server somewhere it might look like:

    Code:
    /users/yourName/home
    that was merely a suggestion for working within a Unix environment. Also, I think doing that will cause Cygwin to automatically open up to that directory (i.e. when you double click cygwin.bat). Either way, it's a good place to organize all your stuff.

    As for your compiler problems, what will compile? You said you can get certain #include files to be located, but not others. Perhaps you didn't get a complete download of the gcc package when you ran setup.exe for cygwin? This could've happened if a connection went down or who knows...

    If all else fails, run setup.exe again, I think you can remove packages there (I may be wrong). Then re-download the relevant gcc/g++ packages (from a different - reliable server) and save them to a local directory. Then install them from there. I have no way of knowing if that'll fix your problem, but it might be worth a shot.
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  9. #9
    Registered User
    Join Date
    Apr 2008
    Posts
    1
    I have had similar problems with headers not being found by NetBeans. If you right-click the project name in the Projects window (usually on the left of the screen), you'll find Properties at the bottom of the context menu. Select this, expand the Build node if it's not already open, and highlight the C Compiler (or C++ Compiler, whichever you are using). I usually start by selecting <All Configurations> from the Configuration drop-down list. Below 'General' you'll see the Include Directories. At the right end of this entry is a button with '...'. Click this to add the include directories you need. I had to add C:/cygwin/usr/include and C:/cygwin/usr/include/mingw. After you click the 'Add' button, I set Store Path as: Absolute, and navigate to the directory(s) you want to get includes from.

    Good luck.

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,758
    Wait, you switched to Cygwin because you wanted to use Netbeans, or you switched to Cygwin and also switched to Netbeans? For the former, you would be mistaken because Netbeans works with MinGW as well.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    Registered User
    Join Date
    Jan 2009
    Posts
    1
    In NetBeans C++ options, the include directories have 3.4.4 in the path. By default, cygwin setup installs 3.3.3 versions of gcc and g++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. NetBeans + Cygwin driving me insane
    By Del75 in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2008, 05:03 AM
  2. Problems with compiling code in cygwin
    By firyace in forum C++ Programming
    Replies: 4
    Last Post: 06-01-2007, 08:16 AM
  3. Cygwin & MinGW
    By TmX in forum Tech Board
    Replies: 3
    Last Post: 09-26-2006, 08:44 AM
  4. Cygwin Server
    By osal in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-07-2005, 11:58 AM
  5. mingw dev studio, question
    By ookooa in forum C++ Programming
    Replies: 2
    Last Post: 05-18-2004, 01:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21