Maybe someone could try the program I attached and see if they get the same problems as me?
I don't know how to use gdb, but I did try running my code under gdb, here's what I got:
$ gdb testavl.exe GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) run Starting program: /cygdrive/c/coding/kurser/tddi01/avl_tree/testavl.exe [New thread 3568.0xe70] Program exited with code 030000000005. You can't do that without a process to debug. (gdb)main() is in the file avl_tree-test.cc (notice the large block of code that has been if 0:ed out in that file). Also notice the cout first in main() which should be displayed even if the program crashes as soon as it tries to instantiate AVL_Tree<int>.
Since this used to work and I haven't touched code I thought I might ask for advice here, since I'm using an upgraded compiler and the cygwin 1.7 test release.
I tried the program under mintty and takecommand, same result. - EL
Cygwin Configuration Diagnostics Current System Time: Thu Apr 23 22:22:17 2009 Windows Vista Business Ver 6.0 Build 6001 Service Pack 1 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin C:\Program Files\PHP\ C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\emacs-23\bin C:\cygwin\bin C:\Program Files\Intel\WiFi\bin\ Output from C:\cygwin\bin\id.exe (nontsec) UID: 1000(mindcooler) GID: 513(None) 0(root) 544(Administratörer) 545(Användare) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1000(mindcooler) GID: 513(None) 0(root) 544(Administratörer) 545(Användare) 513(None) SysDir: C:\Windows\system32 WinDir: C:\Windows USER = 'mindcooler' PWD = '/cygdrive/c/coding/kurser/tddi01/avl_tree' HOME = '/home/mindcooler' HOMEPATH = '\Users\mindcooler' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = 'C:\Users\mindcooler\AppData\Roaming' HOSTNAME = 'mindcool-laptop' DXSDK_DIR = 'C:\Program Files\Microsoft DirectX SDK (March 2009)\' TERM = 'xterm' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 11, GenuineIntel' WINDIR = 'C:\Windows' PUBLIC = 'C:\Users\Public' OLDPWD = '/cygdrive/c' USERDOMAIN = 'mindcool-laptop' PHPRC = 'C:\Program Files\PHP\' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\ProgramData' !:: = '::\' VS90COMNTOOLS = 'C:\vs9\Common7\Tools\' TEMP = '/cygdrive/c/Users/MINDCO~1/AppData/Local/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' USERNAME = 'mindcooler' PROCESSOR_LEVEL = '6' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Users\mindcooler' PS1 = '\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = '\\MINDCOOL-LAPTOP' PROCESSOR_ARCHITECTURE = 'x86' LOCALAPPDATA = 'C:\Users\mindcooler\AppData\Local' ProgramData = 'C:\ProgramData' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' HOMEDRIVE = 'C:' COMSPEC = 'C:\Windows\system32\cmd.exe' TMP = '/cygdrive/c/Users/MINDCO~1/AppData/Local/Temp' SYSTEMROOT = 'C:\Windows' PRINTER = 'Microsoft XPS Document Writer' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0f0b' CLASSPATH = '.' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' COMPUTERNAME = 'MINDCOOL-LAPTOP' _ = '/usr/bin/cygcheck.exe' HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.com%2fcygwin HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.com%2fcygwin\OpenWithList HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'C:\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'C:\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'C:\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options obcaseinsensitive set to 1 c: hd NTFS 159999Mb 45% CP CS UN PA FC d: hd FAT32 9988Mb 33% CP UN FAT32PART e: cd N/A N/A f: cd N/A N/A z: net NTFS 549999Mb 70% CP CS UN PA FC C:/cygwin / system binmode C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode . /cygdrive user binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\awk.exe -> C:\cygwin\bin\gawk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Found: C:\cygwin\bin\cp.exe Found: C:\cygwin\bin\cp.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\cpp.exe -> C:\cygwin\etc\alternatives\cpp -> C:\cygwin\bin\cpp-4.exe
cpp-program.tar
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/