Re: [Dev-C++] QUESTION ON ERROR LOG FROM A NEWBIE
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-04-19 07:45:15
|
If you read your linkin line, you'l notice that it contains a lot of -Ixx - include path for header files and not needed during link. It also contains one -Lxx - library path, i.e. where the linker should pick up any needed libraries. However, there is not a single: -lxx - i.e. a specification _which_ library should be used. If you open your project options, select the 'Parameters' tab and look at the Linker options, you should specify which libraries the project needs. Most probably, you should specify something like -lgtk or whatever the gtk libraries might be named. You don't have to specify the starting lib and the ending .a. /Per W On Mon, 19 Apr 2004, Peter Key wrote: > Dear All, > > > > I have launched into the steep learning curve of C++ by attempting to > get GTKmm installed and running on Windows 98SE machine. Installation is > straightforward (based on the excellent GTKmm Win 32 port site > www.pcpm.ucl.ac.be/~gustin/win32_ports/ and the instructions in the > docs) but in attempting my first program on Dev C++ I get the (linker?) > error list (only partial) as noted below: > > > > Compiler: Default compiler > > Building Makefile: "C:\Programming\TrialGTKmm#1\Makefile.win" > > Executing make clean > > rm -f Trial1.o gtkmm > > g++.exe -c Trial1.cpp -o Trial1.o -I"C:/DEV-CPP/include/c++" > -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" > -I"C:/DEV-CPP/include" -Ic:/dev-cpp/gtkmm/include/gtkmm-2.0 > -Ic:/dev-cpp/gtkmm/lib/gtkmm-2.0/include > -Ic:/dev-cpp/gtkmm/lib/sigc++-1.2/include > -Ic:/dev-cpp/gtkmm/include/sigc++-1.2 -Ic:/dev-cpp/include/gtk-2.0 > -Ic:/dev-cpp/include/glib-2.0 -Ic:/dev-cpp/lib/glib-2.0/include > -Ic:/dev-cpp/lib/gtk-2.0/include -Ic:/dev-cpp/include/pango-1.0 > -Ic:/dev-cpp/include/atk-1.0 -Lc:/dev-cpp/gtkmm/lib -Lc:/dev-cpp/lib > > In file included from C:/DEV-CPP/include/gdk/gdk.h:33, > > from > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/types.h:28, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm.h:27, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gtkmm.h:30, > > from Trial1.cpp:1: > > C:/DEV-CPP/include/gdk/gdkdnd.h:99:8: warning: extra tokens at end of > #endif directive > > In file included from > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/drawable.h:36, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/gc.h:30, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm.h:29, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gtkmm.h:30, > > from Trial1.cpp:1: > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/region.h:189: `GdkSpan' was not > > > declared in this scope > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/region.h:189: `spans' was not > declared > > in this scope > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/region.h:189: parse error > before `,' > > token > > In file included from > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/bitmap.h:27, > > from > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/window.h:28, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm.h:31, > > from c:/dev-cpp/gtkmm/include/gtkmm-2.0/gtkmm.h:30, > > from Trial1.cpp:1: > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/pixmap.h:64: ISO C++ forbids > > declaration of `GdkPixmapObjectClass' with no type > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/pixmap.h:64: parse error before > `;' > > token > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/pixmap.h:113: type specifier > omitted > > for parameter `GdkNativeWindow' > > c:/dev-cpp/gtkmm/include/gtkmm-2.0/gdkmm/pixmap.h:113: parse error > before `)' > > token > > > > Sorry for this, but can somebody point me in the right direction > please??? > > > > Peter Key > > > > > > |