[Dev-C++] Re: [Foxgui-users]Help compiling a FOX program, please!!!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Lyle J. <ly...@kn...> - 2003-12-12 00:58:32
|
On Dec 11, 2003, at 9:53 PM, Maya wrote: > g++.exe -c Templates/main.cpp -o Templates/main.o > -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/include/c++" > -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1" > -I"C:/cygwin/usr/include/c++/3.3.1/backward" > -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin" > -I"C:/cygwin/usr/include/fox" -I"C:\DEV-CPP\\include\fox" > Templates/main.cpp: In constructor `MainWindow::MainWindow(FXApp*)': > Templates/main.cpp:54: error: `FXMenuBar' undeclared (first use this > function) > Templates/main.cpp:54: error: (Each undeclared identifier is reported > only once > for each function it appears in.) <snip> In FOX 1.0, the class name for the menu bar widget is FXMenubar (note the lowercase "b"). In FOX 1.1 (i.e. the fox-1.1.x development series) it has been renamed to FXMenuBar (with an uppercase "B"). Are the FOX header files that you're compiling against those from FOX 1.0 or FOX 1.1? If it's the former, you need the latter ;) And of course, you will need to link your executable against the corresponding version of the FOX library; if you're compiling against the fox-1.1.42 header files, be sure to link against the fox-1.1.42 version of the library. Note that the fox-1.1.x series is the unstable development version; it is quite possible that there will be API changes between whichever fox-1.1.x you're using and subsequent versions in that series. If you're looking for a stable FOX release to develop against, for now that version is FOX 1.0. Hope this helps, Lyle |