Menu

Problem with Dev C++

2009-08-31
2012-09-26
  • Matthias Kohl

    Matthias Kohl - 2009-08-31

    Hello,

    I have a problem with Dev C++ (my version: 4.9.9.2) that I just don't understand:
    When I'm compiling my project, I get the Error messages:
    [Linker error] undefined reference to _Unwind_SjLj_Register' [Linker error] undefined reference to_Unwind_SjLj_Resume'
    [Linker error] undefined reference to `_Unwind_SjLj_Unregister'

    I really can't help myself because I didn't find any help for resolving this error on the net and I don't know which library I have to link with the project..

    I already had the same problem with "undefinened reference to 'GetDC@4'" but there, importing the libgdi32.a library helped. If it can help, I think that my problem comes from one of those functions : DeleteObject(), CreateFile(), ReadFile(), CloseHandle() or resource functions like FindResource(), LoadResource() and LockResource().

    Can anyone help me ?

    Thank you very much
    Matthias

     
    • Wayne Keen

      Wayne Keen - 2009-08-31

      Posting your Basic 3 might help. They are covered in the thread titled "Please Read Before Posting a Question"

      Please let us know where you got any libraries you are linking against as well.

      Finally, are you using the compilr that came with Dev, or using it with your own MinGW installation>

      Wayne

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-01

      Thank you for the answer. So first the Basic 3 :
      - I'm using Dev-C++ version 4.9.9.2
      - I'm sorry but any of the functions I use in my program will return this error if I create a little sample program with them, even if I don't link any libraries (so I can't post a piece of code that would create the same kind of error)
      -My compile log (pretty huge..):
      Compiler: Default compiler
      Building Makefile: "C:\Anwendungsdaten\Programmation_jeux\visionneuse\Makefile.win"
      Executing make...
      make.exe -f "C:\Anwendungsdaten\Programmation_jeux\visionneuse\Makefile.win" all
      g++.exe -DDEBUG -c visionneuse.cpp -o visionneuse.o -I"C:/Programme/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Programme/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Programme/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Programme/Dev-Cpp/include/c++/3.4.2" -I"C:/Programme/Dev-Cpp/include" -I"C:/Programme/Dev-Cpp/include" -g3 -nostdlib

      windres.exe -i Visionneuse_private.rc --input-format=rc -o Visionneuse_private.res -O coff

      g++.exe -DDEBUG visionneuse.o Visionneuse_private.res -o "Visionneuse.exe" -L"C:/Programme/Dev-Cpp/lib" -L"C:/Programme/Dev-Cpp/lib" -mwindows C:/Programme/Dev-Cpp/lib/libgdi32.a -g3 -nostdlib

      C:\Programme\Dev-Cpp\Bin..\lib\gcc\mingw32\3.4.2........\mingw32\bin\ld.exe: warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
      visionneuse.o(.text+0x4b): In function Z9GameStartP6HWND(GameEngine *)': C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference to__gxx_personality_sj0'
      visionneuse.o(.text+0x70):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference to _Unwind_SjLj_Register' visionneuse.o(.text+0x82):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:27: undefined reference toGetDC@4'
      visionneuse.o(.text+0x94):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to operator new(unsigned int)' visionneuse.o(.text+0xcb):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference tooperator delete(void)'
      visionneuse.o(.text+0xe3):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to _Unwind_SjLj_Resume' visionneuse.o(.text+0xff):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference tooperator new(unsigned int)'
      visionneuse.o(.text+0x136):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference to operator delete(void*)' visionneuse.o(.text+0x14e):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference to_Unwind_SjLj_Resume'
      visionneuse.o(.text+0x16a):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference to operator new(unsigned int)' visionneuse.o(.text+0x1a1):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference tooperator delete(void
      )'
      visionneuse.o(.text+0x1b9):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference to _Unwind_SjLj_Resume' visionneuse.o(.text+0x1d5):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:31: undefined reference tooperator new(unsigned int)'
      visionneuse.o(.text+0x215):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:31: undefined reference to operator delete(void*)' visionneuse.o(.text+0x22d):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:31: undefined reference to_Unwind_SjLj_Resume'
      visionneuse.o(.text+0x249):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:32: undefined reference to operator new(unsigned int)' visionneuse.o(.text+0x289):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:32: undefined reference tooperator delete(void)'
      visionneuse.o(.text+0x2a1):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:32: undefined reference to _Unwind_SjLj_Resume' visionneuse.o(.text+0x2bd):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:33: undefined reference tooperator new(unsigned int)'
      visionneuse.o(.text+0x2fd):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:33: undefined reference to operator delete(void*)' visionneuse.o(.text+0x315):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:33: undefined reference to_Unwind_SjLj_Resume'
      visionneuse.o(.text+0x331):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:34: undefined reference to operator new(unsigned int)' visionneuse.o(.text+0x3db):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:34: undefined reference tooperator delete(void
      )'
      visionneuse.o(.text+0x3f3):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:34: undefined reference to `_Unwind_SjLj_Resume'

      visionneuse.o(.text+0x411):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:36: undefined reference to _Unwind_SjLj_Unregister' visionneuse.o(.text+0x483): In functionZ7GameEndP10GameEngine':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:45: undefined reference to operator delete(void*)' visionneuse.o(.text+0x49e): In functionZ12GameActivateP6HWND__':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:53: undefined reference to GetClientRect@8' visionneuse.o(.text+0x4ac):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:54: undefined reference toGetDC@4'
      visionneuse.o(.text+0x4dc):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:55: undefined reference to DrawTextA@20' visionneuse.o(.text+0x4f1):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:56: undefined reference toReleaseDC@8'
      visionneuse.o(.text+0x50e): In function Z14GameDeactivateP6HWND__': C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:64: undefined reference toGetClientRect@8'
      visionneuse.o(.text+0x51c):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:65: undefined reference to GetDC@4' visionneuse.o(.text+0x54c):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:66: undefined reference toDrawTextA@20'

      visionneuse.o(.text+0x561):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:67: undefined reference to ReleaseDC@8' visionneuse.o(.text+0x605): In functionZ9GameCycleP10GameEngine':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:86: undefined reference to InvalidateRect@12' visionneuse.o(.text+0x6e0): In functionZ15WindowProcedureP6HWND__jjl':

      C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:32: undefined reference to BeginPaint@8' visionneuse.o(.text+0x70c):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:36: undefined reference toEndPaint@8'
      visionneuse.o(.text+0x731):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:41: undefined reference to `PostQuitMessage@4'

      visionneuse.o(.text+0x75d):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:45: undefined reference to DefWindowProcA@16' visionneuse.o(.text+0x780): In functionWinMain':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:57: undefined reference to __gxx_personality_sj0' visionneuse.o(.text+0x7ae):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:57: undefined reference to_Unwind_SjLj_Register'
      visionneuse.o(.text+0x7ed):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:70: undefined reference to LoadIconA@8' visionneuse.o(.text+0x806):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:71: undefined reference toLoadIconA@8'
      visionneuse.o(.text+0x820):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:72: undefined reference to LoadCursorA@8' visionneuse.o(.text+0x84d):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:80: undefined reference toRegisterClassExA@4'
      visionneuse.o(.text+0x87a):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:83: undefined reference to operator new(unsigned int)' visionneuse.o(.text+0x8fa):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:83: undefined reference tooperator delete(void*)'
      visionneuse.o(.text+0x91e):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:83: undefined reference to _Unwind_SjLj_Resume' visionneuse.o(.text+0x952):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:85: undefined reference toGetSystemMetrics@4'
      visionneuse.o(.text+0x97f):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:85: undefined reference to `GetSystemMetrics@4'

      visionneuse.o(.text+0x99e):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:85: undefined reference to GetSystemMetrics@4' visionneuse.o(.text+0x9bc):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:87: undefined reference toGetSystemMetrics@4'
      visionneuse.o(.text+0x9dc):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:88: undefined reference to GetSystemMetrics@4' visionneuse.o(.text+0xa03):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:88: more undefined references toGetSystemMetrics@4' follow
      visionneuse.o(.text+0xa83): In function WinMain': C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:92: undefined reference toCreateWindowExA@48'
      visionneuse.o(.text+0xa9b):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:110: undefined reference to ShowWindow@8' visionneuse.o(.text+0xaa9):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:111: undefined reference toUpdateWindow@4'

      visionneuse.o(.text+0xafd):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:121: undefined reference to PeekMessageA@20' visionneuse.o(.text+0xb24):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:125: undefined reference toTranslateMessage@4'
      visionneuse.o(.text+0xb32):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:126: undefined reference to DispatchMessageA@4' visionneuse.o(.text+0xb57):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:132: undefined reference toGetTickCount@0'
      visionneuse.o(.text+0xbb2):C:/Anwendungsdaten/Programmation_jeux/visionneuse/visionneuse.cpp:142: undefined reference to _Unwind_SjLj_Unregister' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__iim[Bitmap::Create(HDC__*, int, int, unsigned long)]+0xda): In functionZ9GameStartP6HWND(GameEngine *)':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to FillRect@12' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__jP11HINSTANCE__[Bitmap::Create(HDC__*, unsigned int, HINSTANCE__*)]+0x2b): In functionZN10GameEngine9SetWindowEP6HWND':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/engine_class.h: undefined reference to FindResourceA@12' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__jP11HINSTANCE__[Bitmap::Create(HDC__*, unsigned int, HINSTANCE__*)]+0x55): In functionZ9GameStartP6HWND(GameEngine *)':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference to LoadResource@8' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__jP11HINSTANCE__[Bitmap::Create(HDC__*, unsigned int, HINSTANCE__*)]+0x78):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:27: undefined reference toLockResource@4'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC
      jP11HINSTANCE[Bitmap::Create(HDC*, unsigned int, HINSTANCE*)]+0x8f):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to FreeResource@4' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__jP11HINSTANCE__[Bitmap::Create(HDC__*, unsigned int, HINSTANCE__*)]+0x13a):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference tomemcpy'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC
      jP11HINSTANCE[Bitmap::Create(HDC*, unsigned int, HINSTANCE*)]+0x145):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference to FreeResource@4' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC__jP11HINSTANCE__[Bitmap::Create(HDC__*, unsigned int, HINSTANCE__*)]+0x15c):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference toFreeResource@4'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char )[Bitmap::Create(HDC__, char)]+0x49):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference to CreateFileA@28' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__*, char*)]+0x8a):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:27: undefined reference toReadFile@20'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char
      )[Bitmap::Create(HDC__, char)]+0xb6):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to CloseHandle@4' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__*, char*)]+0xd1):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference tooperator new(unsigned int)'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char )[Bitmap::Create(HDC__, char)]+0x107):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference to ReadFile@20' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__*, char*)]+0x12b):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:29: undefined reference toCloseHandle@4'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char
      )[Bitmap::Create(HDC__, char)]+0x18c):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference to SetFilePointer@16' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__*, char*)]+0x1c0):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:30: undefined reference toReadFile@20'
      visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__, char)]+0x236):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:31: undefined reference to SetFilePointer@16' visionneuse.o(.text$_ZN6Bitmap6CreateEP5HDC(char *)[Bitmap::Create(HDC__*, char*)]+0x264):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:32: undefined reference toReadFile@20'
      visionneuse.o(.text$_ZN6Bitmap8DrawPartEP5HDC
      iiiiiibm[Bitmap::DrawPart(HDC__*, int, int, int, int, int, int, bool, unsigned long)]+0x98):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:28: undefined reference to TransparentBlt@44' visionneuse.o(.text$_ZN10GameEngineC1EP11HINSTANCE__PcS2_ttii[GameEngine::GameEngine(HINSTANCE__*, char*, char*, unsigned short, unsigned short, int, int)]+0x2d): In functionZN10GameEngine9SetWindowEP6HWND__':
      C:/Anwendungsdaten/Programmation_jeux/visionneuse/engine_class.h: undefined reference to `lstrlenA@4'

      visionneuse.o(.text$_ZN10GameEngineC1EP11HINSTANCEPcS2_ttii[GameEngine::GameEngine(HINSTANCE__, char, char*, unsigned short, unsigned short, int, int)]+0x49): In function Z9GameStartP6HWND(GameEngine *)': C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference tolstrcpyA@8'
      visionneuse.o(.text$_ZN10GameEngineC1EP11HINSTANCE
      PcS2_ttii[GameEngine::GameEngine(HINSTANCE__, char, char*, unsigned short, unsigned short, int, int)]+0x57):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference to lstrlenA@4' visionneuse.o(.text$_ZN10GameEngineC1EP11HINSTANCE__PcS2_ttii[GameEngine::GameEngine(HINSTANCE__*, char*, char*, unsigned short, unsigned short, int, int)]+0x73):C:/Anwendungsdaten/Programmation_jeux/visionneuse/functions.h:26: undefined reference tolstrcpyA@8'
      visionneuse.o(.text$_ZN6BitmapD0Ev[Bitmap::~Bitmap()]+0x2d): In function ZN10GameEngine9SetWindowEP6HWND__': C:/Anwendungsdaten/Programmation_jeux/visionneuse/engine_class.h: undefined reference tooperator delete(void)'
      visionneuse.o(.text$_ZN6BitmapD1Ev[Bitmap::~Bitmap()]+0x2d):C:/Anwendungsdaten/Programmation_jeux/visionneuse/engine_class.h: undefined reference to operator delete(void*)' visionneuse.o(.rdata$_ZTI6Bitmap[typeinfo for Bitmap]+0x0):C:/Anwendungsdaten/Programmation_jeux/visionneuse/engine_class.h: undefined reference tovtable for cxxabiv1::class_type_info'
      collect2: ld returned 1 exit status
      make.exe:
      ** [Visionneuse.exe] Error 1

      Execution terminated

      As you can see : It uses the default compiler , I linked the libgdi32.a file which came with dev-c++, it compiles with g++.exe and I also payed attention to the directory Dev-C++ is installed in and compiles to (contains no spaces)

      Thank you for any further help !

      Matthias

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-01

      edit : I said 'any of the functions.. will create this error' well, in fact, any of these functions won't (!) create this error in a little program

       
    • Wayne Keen

      Wayne Keen - 2009-09-01

      Did you set nostdlib on purpose?

      Also, it looks like you might have another Gnu tool chanion in your path? Do you have Cygwin or the like on your machine/in your path?

       
      • Wayne Keen

        Wayne Keen - 2009-09-01

        Note that a lot of your errors may be related to the fact that you have selected the nostdlib option, and yet you seem to be using a lot of commands that rely on the stdlib.

        Wayne

         
    • cpns

      cpns - 2009-09-01

      You only use -nostdlib when you are going to explicitly specify an alternative standard library to the one teh compiler will used by default. You probably don't have such a library since if you did you would by implication know what you were doing.

      I wonder why you set that option? And having set it I wonder why you are surprised at the result!?

      Fix that first, the log will at least be smaller, and we may be able to see teh wood for teh trees, because at the moment I suspect your inability to link has multiple causes, and the best course is to fix the obvious ones you can see so that the remaining diagnostic information refers only to the ones that are left.

      Clifford.

       
    • Wayne Keen

      Wayne Keen - 2009-09-01

      I suspect there is a

      "But I didn't set that option"

      in our future

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-03

      Well you are right , I didn't set it, but yes , I know how to set it, I know how to link libs but still:
      those three errors that came up and that I posted in the beggining still come up. But anyway, I now use the Borland compiler and it works so ... i'm sorry I wasted your time dogs but this thread has no purpose anymore

      Have a good time

      Matthias

       
    • cpns

      cpns - 2009-09-03

      > Well you are right , I didn't set it,
      Ha! Well someone did, it cannot get magically set by itself, so forgive us if we don't believe you.

      > I know how to set it
      That is not the point! It should not be set.

      > I now use the Borland compiler and it works so
      Borland made compilers for many years; there is no "the Borland compiler", but many. Some are not a good choice for modern development. Since Borland spun-off their development tools division to Embacadero, under the name CodeGear, there is no such thing as a "Borland compiler" that is not an obsolete product. CodeGear have two C++ development tools, TurboC++ (not to be confused with the antique Borland TurboC++), and C++Builder. So we have no idea what you are using, or whether it was a good choice. I would suggest VC++ 2008 Express Edition is you want a complete, modern, and zero-cost licensed tool.

      If it works with Borland, is it possible that the libraries you were using were not MinGW libraries, and that was your problem all along?

      > i'm sorry I wasted your time dogs

      What was that for? Why are we 'dogs'? Dog yourself!

      It is a shame that you did not see this out to the end, you may have learned something useful, even if you eventually chose a different too. Even if what you learned was to choose a better tool that you did.

      Oh well, your loss.

      Clifford

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-04

      > Ha! Well someone did ...
      I actually recompiled some old, little projects with dev-c++ and the same errors showed up. I then set the standard lib and the errors stopped. Though, as soon as I try to compile this project, the -nostdlib option shows up... explain this

      I know there is more than one Borland compiler but I assumed that saying borland 'compiler' and not 'builder' would make you think of the TurboC++ command line compiler 5.5 since this is the latest free version of it and all other (up-to-date!) tools from Borland, CodeGear or whatsoever do have an interface and are thus called 'builder'.
      Anyway, I had VC++ 2008 Express Edition in the first place but since I do want to learn the basics first and don't want to use some pre-made thing from microsoft like VB in Excel, I don't really use this compiler.

      > If it works with "TurboC++ command-line compiler version 5.5 with Turbo Incremental Link 5.0 " , is it possible that the libraries you were using were not MinGW libraries..
      I did use those two libraries: libmsimg32.a (because of TransparentBlt()) and libgdi32.a plus the standard library (which will unset itself for no reason...). Anyway, obviously, they ARE MinGW libraries and with the command-line compiler, I only have to use the msimg32 library for TransparentBlt() since gdi32 is included in the standard cw32 lib and it works fine.

      >What was that for ? Why are we 'dogs' ?
      Be cats.

      >It is a shame that you did not see this out to the end...
      Well, what I did was just include every MinGW library in the project to see what will happen:
      it will reduce the number of errors that occur (because of the standard lib that is now still unset but included in the other libs) but those three errors I posted in the beginning will still come up, whatever I do. So if you have any idea why this could be, well i'm grateful if you come up with it and post it here, but if you're just coming back to tell me how badly I posted my question, how unpolite I am and that I should be able to help myself etc. etc. well please, give it up, I won't even read it next time :s

      Matthias

       
    • cpns

      cpns - 2009-09-04

      > Though, as soon as I try to compile this project, the -nostdlib option shows up... explain this

      That is for you to explain. Did you use an existing project file, or start from scratch or a template? Has someone modified the template. Was teh option set in the project options or the Tools->Compiler options? Either way Dev-C++ is not shipped with that options set anywhere.

      > would make you think of the TurboC++ command line compiler 5.5
      TurboC++ and Borland C/C++ 5.5 are not the same thing at all!

      > all other (up-to-date!) tools from Borland, CodeGear or whatsoever
      > do have an interface and are thus called 'builder'
      I was going to say "not true" but it seems that Embarcadero have dropped the apparently short-lived "Turbo Explorer" range. Presumably in an attempt to further confuse and alienate their users! Come back Phillipe Kahn!

      >> If it works with "TurboC++ command-line compiler version 5.5 with Turbo
      >> Incremental Link 5.0 " , is it possible that the libraries you were using
      >> were not MinGW libraries..
      If you are going to indicate a quote with a '>' then don't change what I said!

      > Anyway, obviously, they ARE MinGW libraries
      One of the missing symbols appeared to be a class called "GameEngine", that is not in any standard or OS specific library.

      > Be cats.
      My point was why are you throwing insults at those genuinely attempting to assist you? Where I live, calling someone a dog is an insult.

      > Well, what I did was just include every MinGW library in the project
      Why!? For all Win32 calls, the necessary library is specified in the documentation on MSDN.

      > those three errors I posted in the beginning will still come up
      And what we need to see in these circumstances is the current log. It is diagnostic information, and you want a diagnosis. I believe that they are symbols related to compiler exception handling, they would occur is you still had -nostdlib, this would suppress linking of libgcc.a which includes functions that the compiler generates as part of its code generation. It may not be in the standard library path, but is linked silently when -nostdlibs is not defined.

      > if you're just coming back to tell me how badly I posted my question
      Not at all, you started with the insults (whether intentionally or not, perhaps being called a dog is acceptable where you are). Besides advise on posting better questions is intended to help you get better answers. Who would not want that!? Getting sensitive will not get you far on a public forum, where not everyone adheres to your perception of acceptable behaviour.

      Clifford

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-07

      Well thanks for your replies anyway. Actually I solved the problem by not including the gdi32-lib (libgdi32.a) and msimg32-lib (libmsimg32.a) and setting the "use standard libraries" option to yes which won't anymore unset itself. Probably just some problem with my Dev-C++ but if it helps, do it like me, don't include the standard libraries on your own ..

      Matthias

       
    • cpns

      cpns - 2009-09-07

      > Actually I solved the problem by not including the gdi32-lib (libgdi32.a) and msimg32-lib
      > (libmsimg32.a) and setting the "use standard libraries" option to yes which won't
      > anymore unset itself.

      Eh! You solved it! I don't think so; that is exactly what both Wayne and I told you to do in the first place! How you come you credit yourself for our solution!?

      Clifford.

       
    • Matthias Kohl

      Matthias Kohl - 2009-09-01

      edit : I tried to just link every library that comes with Dev-C++ to the project and it won't post these 'undefinened reference to GetDC@4, new or delete' errors but still the errors I copied in here when I started the threat

       
  • Skillspace Projects

    Not to "get involved", but I'm just reading this:

    > > Be cats. My point was why are you throwing insults at those
    genuinely
    > attempting to assist you? Where I
    > live, calling someone a dog is an
    > insult.
    >

    This is why people need to be careful using slang on the Internet. (People
    don't even think!) It comes from rap music -- I think...don't quote me on
    that. It's kind like calling someone "dude".

    Just thought you might like to know.

    Apparently "matthiaskohl" didn't realize how you would take it.
    People really shouldn't write the same way they talk to their hometown friends
    unless they know who they're talking to.

     
  • K.Z.

    K.Z. - 2009-09-23

    > Blockquote
    > Not to "get involved"
    > Blockquote
    > Oh do shut up.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.