|
From: Scott B. <doo...@ya...> - 2005-02-20 14:49:20
|
Hello, I am trying to compile an example program which uses FLTK, but I get the following error message: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\MyProjects\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\MyProjects\Makefile.win" all g++.exe -c fltkTest.cpp -o fltkTest.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include/FL" -I"C:/Dev-Cpp/include" fltkTest.cpp:25:2: warning: no newline at end of file g++.exe fltkTest.o -o "FLTKProject2.exe" -L"C:/Dev-Cpp/lib" ../lib/libfltk.a ../lib/libfltk_forms.a ../lib/libfltk_gl.a ../lib/libfltk_images.a ../lib/libfltk.a(Fl.o)(.text+0x74a):Fl.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl.o)(.text+0x1615):Fl.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl.o)(.text+0x172c):Fl.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(Fl.o)(.text+0x1741):Fl.cxx: undefined reference to `CombineRgn@16' ../lib/libfltk.a(Fl.o)(.text+0x174a):Fl.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl.o)(.text+0x1776):Fl.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(Fl.o)(.text+0x178d):Fl.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl.o)(.text+0x721):Fl.cxx: undefined reference to `GdiFlush@0' ../lib/libfltk.a(Fl_x.o)(.text+0x590):Fl_x.cxx: undefined reference to `select@20' ../lib/libfltk.a(Fl_x.o)(.text+0x5e2):Fl_x.cxx: undefined reference to `__WSAFDIsSet@8' ../lib/libfltk.a(Fl_x.o)(.text+0x5fc):Fl_x.cxx: undefined reference to `__WSAFDIsSet@8' ../lib/libfltk.a(Fl_x.o)(.text+0x614):Fl_x.cxx: undefined reference to `__WSAFDIsSet@8' ../lib/libfltk.a(Fl_x.o)(.text+0x725):Fl_x.cxx: undefined reference to `select@20' ../lib/libfltk.a(Fl_x.o)(.text+0xe83):Fl_x.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(Fl_x.o)(.text+0xf0c):Fl_x.cxx: undefined reference to `CombineRgn@16' ../lib/libfltk.a(Fl_x.o)(.text+0xf15):Fl_x.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl_x.o)(.text+0xf2d):Fl_x.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(Fl_x.o)(.text+0x1589):Fl_x.cxx: undefined reference to `UpdateColors@4' ../lib/libfltk.a(Fl_x.o)(.text+0x1c0a):Fl_x.cxx: undefined reference to `RegisterDragDrop@8' ../lib/libfltk.a(Fl_x.o)(.text+0x1c36):Fl_x.cxx: undefined reference to `OleInitialize@4' ../lib/libfltk.a(Fl_x.o)(.text+0x2126):Fl_x.cxx: undefined reference to `SetTextAlign@8' ../lib/libfltk.a(Fl_x.o)(.text+0x2133):Fl_x.cxx: undefined reference to `SetBkMode@8' ../lib/libfltk.a(fl_rect.o)(.text+0x28):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x3d):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x51):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x62):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x73):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0xf6):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x108):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x145):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x154):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x162):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x1a5):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x1b4):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x1c5):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x1d5):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x20f):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x21d):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x265):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x274):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x282):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x2c5):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x2d4):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x2e5):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x2f5):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x32c):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x33b):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x351):fl_rect.cxx: undefined reference to `SetPixel@16' ../lib/libfltk.a(fl_rect.o)(.text+0x37c):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x391):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x39f):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x3b5):fl_rect.cxx: undefined reference to `SetPixel@16' ../lib/libfltk.a(fl_rect.o)(.text+0x3d7):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x3eb):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x3fe):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x40c):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x436):fl_rect.cxx: undefined reference to `MoveToEx@16' ../lib/libfltk.a(fl_rect.o)(.text+0x44b):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x45e):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x471):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x47f):fl_rect.cxx: undefined reference to `LineTo@12' ../lib/libfltk.a(fl_rect.o)(.text+0x4c9):fl_rect.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_rect.o)(.text+0x4df):fl_rect.cxx: undefined reference to `Polygon@12' ../lib/libfltk.a(fl_rect.o)(.text+0x535):fl_rect.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_rect.o)(.text+0x54b):fl_rect.cxx: undefined reference to `Polygon@12' ../lib/libfltk.a(fl_rect.o)(.text+0x57c):fl_rect.cxx: undefined reference to `SetPixel@16' ../lib/libfltk.a(fl_rect.o)(.text+0x5b6):fl_rect.cxx: undefined reference to `SelectClipRgn@8' ../lib/libfltk.a(fl_rect.o)(.text+0x5dd):fl_rect.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_rect.o)(.text+0x644):fl_rect.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x660):fl_rect.cxx: undefined reference to `CombineRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x68f):fl_rect.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x6f4):fl_rect.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_rect.o)(.text+0x789):fl_rect.cxx: undefined reference to `RectInRegion@8' ../lib/libfltk.a(fl_rect.o)(.text+0x7d6):fl_rect.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x7e5):fl_rect.cxx: undefined reference to `CreateRectRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x7f1):fl_rect.cxx: undefined reference to `CombineRgn@16' ../lib/libfltk.a(fl_rect.o)(.text+0x7ff):fl_rect.cxx: undefined reference to `EqualRgn@8' ../lib/libfltk.a(fl_rect.o)(.text+0x80e):fl_rect.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_rect.o)(.text+0x814):fl_rect.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_rect.o)(.text+0x82a):fl_rect.cxx: undefined reference to `GetRgnBox@8' ../lib/libfltk.a(fl_dnd.o)(.text+0x5b):fl_dnd.cxx: undefined reference to `DoDragDrop@16' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropSource14QueryInterfaceERK5_GUIDPPv+0xb):fl_dnd.cxx: undefined reference to `IID_IUnknown' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropSource14QueryInterfaceERK5_GUIDPPv+0x1f):fl_dnd.cxx: undefined reference to `IID_IDropSource' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDataObject14QueryInterfaceERK5_GUIDPPv+0xb):fl_dnd.cxx: undefined reference to `IID_IUnknown' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDataObject14QueryInterfaceERK5_GUIDPPv+0x1f):fl_dnd.cxx: undefined reference to `IID_IDataObject' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropTarget14QueryInterfaceERK5_GUIDPPv+0xb):fl_dnd.cxx: undefined reference to `IID_IUnknown' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropTarget14QueryInterfaceERK5_GUIDPPv+0x1f):fl_dnd.cxx: undefined reference to `IID_IDropTarget' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropTarget4DropEP11IDataObjectm8tagPOINTPm+0x10d):fl_dnd.cxx: undefined reference to `ReleaseStgMedium@4' ../lib/libfltk.a(fl_dnd.o)(.text$_ZN12FLDropTarget4DropEP11IDataObjectm8tagPOINTPm+0x1ed):fl_dnd.cxx: undefined reference to `ReleaseStgMedium@4' ../lib/libfltk.a(Fl_get_system_colors.o)(.text+0xad5):Fl_get_system_colors.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_color.o)(.text+0x1e):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0x38):fl_color.cxx: undefined reference to `CreatePen@12' ../lib/libfltk.a(fl_color.o)(.text+0x7a):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0xc1):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0xd7):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0xec):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0xf6):fl_color.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_color.o)(.text+0x118):fl_color.cxx: undefined reference to `CreateSolidBrush@4' ../lib/libfltk.a(fl_color.o)(.text+0x12e):fl_color.cxx: undefined reference to `CreatePen@12' ../lib/libfltk.a(fl_color.o)(.text+0x154):fl_color.cxx: undefined reference to `CreatePen@12' ../lib/libfltk.a(fl_color.o)(.text+0x1d0):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0x2d9):fl_color.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_color.o)(.text+0x38d):fl_color.cxx: undefined reference to `CreateSolidBrush@4' ../lib/libfltk.a(fl_color.o)(.text+0x3fa):fl_color.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_color.o)(.text+0x4cc):fl_color.cxx: undefined reference to `SelectPalette@12' ../lib/libfltk.a(fl_color.o)(.text+0x4da):fl_color.cxx: undefined reference to `RealizePalette@4' ../lib/libfltk.a(fl_color.o)(.text+0x4fb):fl_color.cxx: undefined reference to `GetDeviceCaps@8' ../lib/libfltk.a(fl_color.o)(.text+0x55b):fl_color.cxx: undefined reference to `CreatePalette@4' ../lib/libfltk.a(fl_font.o)(.text+0x58):fl_font.cxx: undefined reference to `CreateFontA@56' ../lib/libfltk.a(fl_font.o)(.text+0x77):fl_font.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_font.o)(.text+0x8a):fl_font.cxx: undefined reference to `GetTextMetricsA@8' ../lib/libfltk.a(fl_font.o)(.text+0xa2):fl_font.cxx: undefined reference to `GetCharWidthA@16' ../lib/libfltk.a(fl_font.o)(.text+0x158):fl_font.cxx: undefined reference to `CreateFontA@56' ../lib/libfltk.a(fl_font.o)(.text+0x178):fl_font.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_font.o)(.text+0x18b):fl_font.cxx: undefined reference to `GetTextMetricsA@8' ../lib/libfltk.a(fl_font.o)(.text+0x1a3):fl_font.cxx: undefined reference to `GetCharWidthA@16' ../lib/libfltk.a(fl_font.o)(.text+0x218):fl_font.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_font.o)(.text+0x248):fl_font.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_font.o)(.text+0x476):fl_font.cxx: undefined reference to `SetTextColor@8' ../lib/libfltk.a(fl_font.o)(.text+0x48c):fl_font.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_font.o)(.text+0x4a8):fl_font.cxx: undefined reference to `TextOutA@20' ../lib/libfltk.a(fl_font.o)(.text+0x4b6):fl_font.cxx: undefined reference to `SetTextColor@8' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x13c):Fl_Pixmap.cxx: undefined reference to `CreateCompatibleDC@4' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x149):Fl_Pixmap.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x173):Fl_Pixmap.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x17e):Fl_Pixmap.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x1a8):Fl_Pixmap.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x1ae):Fl_Pixmap.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x1f5):Fl_Pixmap.cxx: undefined reference to `CreateCompatibleBitmap@12' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x267):Fl_Pixmap.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Pixmap.o)(.text+0x3da):Fl_Pixmap.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0xb6):Fl_Bitmap.cxx: undefined reference to `CreateBitmap@20' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x112):Fl_Bitmap.cxx: undefined reference to `GetDeviceCaps@8' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x122):Fl_Bitmap.cxx: undefined reference to `GetDeviceCaps@8' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x233):Fl_Bitmap.cxx: undefined reference to `CreateBitmap@20' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x30b):Fl_Bitmap.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x50b):Fl_Bitmap.cxx: undefined reference to `CreateCompatibleDC@4' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x51b):Fl_Bitmap.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x530):Fl_Bitmap.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x554):Fl_Bitmap.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Bitmap.o)(.text+0x55a):Fl_Bitmap.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Image.o)(.text+0x38a):Fl_Image.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl_Image.o)(.text+0xa60):Fl_Image.cxx: undefined reference to `CreateCompatibleDC@4' ../lib/libfltk.a(Fl_Image.o)(.text+0xa6d):Fl_Image.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Image.o)(.text+0xa97):Fl_Image.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Image.o)(.text+0xaa2):Fl_Image.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Image.o)(.text+0xacd):Fl_Image.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Image.o)(.text+0xad3):Fl_Image.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Image.o)(.text+0xb14):Fl_Image.cxx: undefined reference to `CreateCompatibleBitmap@12' ../lib/libfltk.a(Fl_Image.o)(.text+0xb73):Fl_Image.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x1e):Fl_Double_Window.cxx: undefined reference to `CreateCompatibleDC@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x2d):Fl_Double_Window.cxx: undefined reference to `SetTextAlign@8' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x35):Fl_Double_Window.cxx: undefined reference to `SetBkMode@8' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x4c):Fl_Double_Window.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x66):Fl_Double_Window.cxx: undefined reference to `SelectPalette@12' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x7e):Fl_Double_Window.cxx: undefined reference to `CreateCompatibleDC@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x8b):Fl_Double_Window.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0xb5):Fl_Double_Window.cxx: undefined reference to `BitBlt@36' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0xbb):Fl_Double_Window.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x1c4):Fl_Double_Window.cxx: undefined reference to `DeleteDC@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x1e8):Fl_Double_Window.cxx: undefined reference to `CreateCompatibleBitmap@12' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x24b):Fl_Double_Window.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(Fl_Double_Window.o)(.text+0x299):Fl_Double_Window.cxx: undefined reference to `DeleteObject@4' ../lib/libfltk.a(fl_arci.o)(.text+0x168):fl_arci.cxx: undefined reference to `Arc@36' ../lib/libfltk.a(fl_arci.o)(.text+0x2f7):fl_arci.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_arci.o)(.text+0x325):fl_arci.cxx: undefined reference to `Pie@36' ../lib/libfltk.a(fl_vertex.o)(.text+0x5e2):fl_vertex.cxx: undefined reference to `SetPixel@16' ../lib/libfltk.a(fl_vertex.o)(.text+0x612):fl_vertex.cxx: undefined reference to `Polyline@12' ../lib/libfltk.a(fl_vertex.o)(.text+0x6ca):fl_vertex.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_vertex.o)(.text+0x6e2):fl_vertex.cxx: undefined reference to `Polygon@12' ../lib/libfltk.a(fl_vertex.o)(.text+0x7ea):fl_vertex.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_vertex.o)(.text+0x808):fl_vertex.cxx: undefined reference to `PolyPolygon@16' ../lib/libfltk.a(fl_vertex.o)(.text+0x963):fl_vertex.cxx: undefined reference to `Arc@36' ../lib/libfltk.a(fl_vertex.o)(.text+0x984):fl_vertex.cxx: undefined reference to `SelectObject@8' ../lib/libfltk.a(fl_vertex.o)(.text+0x9a5):fl_vertex.cxx: undefined reference to `Pie@36' ../lib/libfltk.a(fl_draw_image.o)(.text+0x559):fl_draw_image.cxx: undefined reference to `SetDIBitsToDevice@48' make.exe: *** [FLTKProject2.exe] Error 1 Execution terminated Does anybody know how to fix this ? Scott Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com |
|
From: Alfred P. R. <al...@ya...> - 2005-02-20 22:44:02
|
This is solved by doing a search in the library files for the text 'DeleteObject@4' as an example. Don't mind the link, as IE isn't smart enough to know that the above isn't an e-mail address. Once found, add it to the linker line. Searching on my implementation,: $ grep -ri 'DeleteObject@4' * <in dev-cpp/lib, BTW> Binary file libfltk.a matches Binary file libgdi32.a matches My take is that the actual entity referenced is in libgdi32.a and not libfltk.a, which you actually use in your link line below. I've had this problem numerous times, and am very thankful for the Unix-like capability that has finally been ported to Windows, as exampled by grep. The MS DOS command, BTW, is findstr, which is a poor subsitute for grep, IMHO. I'm working on an application right now with 9 modules that uses: #include <FL/Fl.H> #include <FL/Fl_Ask.H> #include <FL/Fl_Button.H> #include <FL/FL_Clock.H> #include <FL/Fl_Check_Button.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Group.H> #include <FL/Fl_Image.H> #include <FL/Fl_Input.H> #include <FL/Fl_Light_Button.H> #include <FL/Fl_Progress.H> #include <FL/Fl_Round_Button.H> #include <FL/Fl_Text_Buffer.H> #include <FL/Fl_Text_Display.H> I've got to manually include in the Project Options-->Parameters-->Linker the following: ../Dev-Cpp/lib/libfltk.a ../Dev-Cpp/lib/libole32.a ../Dev-Cpp/lib/libuuid.a ../Dev-Cpp/lib/libwsock32.a Or I get reference errors. I have no clue as to why Dev-Cpp doesn't find them on it's own. Scott Brown <doo...@ya...> wrote: Hello, I am trying to compile an example program which uses FLTK, but I get the following error message: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\MyProjects\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\MyProjects\Makefile.win" all g++.exe -c fltkTest.cpp -o fltkTest.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include/FL" -I"C:/Dev-Cpp/include" fltkTest.cpp:25:2: warning: no newline at end of file g++.exe fltkTest.o -o "FLTKProject2.exe" -L"C:/Dev-Cpp/lib" ../lib/libfltk.a ../lib/libfltk_forms.a ../lib/libfltk_gl.a ../lib/libfltk_images.a ../lib/libfltk.a(Fl.o)(.text+0x74a):Fl.cxx: undefined reference to `DeleteObject@4' <snip> Alfred P. Reaud |
|
From: Per W. <pw...@ia...> - 2005-02-21 14:21:06
|
Dev-Cpp doesn't find them on it's own because it is specified not to. It doesn't add any library files to the linker on it's own for the same reason that it doesn't include any header files on it's own either. If you want to include a header file, you _have_ to use an #include statement. If you want to add a library when linking, you _have_ to use the -lname option. Notice that it isn't so easy to auto-locate which libraries that are needed, since there are often multiple libraries that exports the same symbol. You might have debug libraries, single-threaded libraries, multi-threaded libraries, stand-alone "lite" libraries, stub libraries for dynamic loading, etc, etc, etc. The header file specifies the prototypes of functions, variables or types that may be used. The library statement specifies what actual implementations to link into the application. /Per W On Sun, 20 Feb 2005, Alfred P. Reaud wrote: > I have no clue as to why Dev-Cpp doesn't find them on it's own. |