Netbeans 6.8 C++ IDE: program crashes while debugging in cygwin on windows -


whenever try debug project in netbeans 6.8 c++ ide cygwin on windows, gives me message window "application crashed".(netbeans ide not crash program)there no problem while running only, while debugging, crashes. please help

ok, im having been trying install c/c++ plugin netbeans ide 6.9 using instruction netbeans support , website: http://royalexander.wordpress.com/2009/03/20/configuring-cygwin-cc-compiler-for-netbeans-65-under-windows/

so decided use cygwin build engine. build fine crashes when run it. dig , dig. open location in c drive , run manually. finally, found different error message:

"entry point cygwin_create_path not located in dynamic link library cygwin1.dll"

this narrows down problem cygwin after googling, found might compatibility issue new cygwin update 1.7 install 1.5 version instead , worked!!! here how can too: download older version off cygwin website:the setup_legacy.exe run .exe make sure change new root directory name (if have 1.7 already) cygwin download prompted. create location download cache inside directory once chose mirror can search these in development:

  • –binutils
  • –gcc core
  • –gcc g++
  • –gcc g77
  • –gcc mingw core
  • –gcc mingw g++
  • –gcc mingw g77
  • –gdb
  • –make
  • –mingw runtime

hit next install cygwin package

set environment variable (thru advanced system setting vista). under system variable add c:\cygwin\bin; path variable

open netbeans , open new project c/c++ app under tools chose options , click on c/c++ add host add host. chose path root location of cygwin , bin make default have name cygwin_1 or whatever ex: c:\cygwin_legacy\bin netbeans detect compilers etc ok thing

now right click on project , hit property click on build right, change tool collection cygwin_1 (or whatever name was)

write hello world program (i did in c++)

debug , run thing should work! hope others me in future spent 4-5 hours on several days trying figure bug out. hard because error message not helpful unless run .exe manually. entry point message.

here build message (successful crashed when run):

"/usr/bin/make" -f nbproject/makefile-debug.mk qmake= subprojects= .build-conf make[1]: entering directory `/cygdrive/c/users/kelvin/documents/netbeansprojects/cppdebug' "/usr/bin/make"  -f nbproject/makefile-debug.mk dist/debug/cygwin_1-windows/cppdebug.exe make[2]: entering directory `/cygdrive/c/users/kelvin/documents/netbeansprojects/cppdebug' mkdir -p build/debug/cygwin_1-windows rm -f build/debug/cygwin_1-windows/main.o.d g++-3.exe    -c -g -mmd -mp -mf build/debug/cygwin_1-windows/main.o.d -o build/debug/cygwin_1-windows/main.o main.cpp mkdir -p dist/debug/cygwin_1-windows g++-3.exe     -o dist/debug/cygwin_1-windows/cppdebug build/debug/cygwin_1-windows/main.o   make[2]: leaving directory `/cygdrive/c/users/kelvin/documents/netbeansprojects/cppdebug' make[1]: leaving directory `/cygdrive/c/users/kelvin/documents/netbeansprojects/cppdebug'  build successful (total time: 24s) 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -