Menu

#20 "fix" for compiling and linking on Gentoo w/ gt3/kde3.1/gcc3

open
nobody
None
5
2003-05-31
2003-05-31
Anonymous
No

First of all.
All .cpp and .h files which
#include <link>
#include <map>
#include <vector>
or the like (note the missing .h)

add the .h for backward compability.
like #include <map.h>

If that's not enough add under the include statesments.

using namespace std;

(the author of this utilityprogram have no notion of namespaces)

Just keep on doing it to the files the compiler is complaining about
until all the errors go away.

Next the linking:
since libkfile (dialog) doesn't exists use must create a file libkfile with a
symbolic link to som other library.
Eg.
ln -s /usr/kde/3.1/lib/libkdeui.so /usr/kde/3.1/lib/libkfile.so

Next is to change the KFileDialog to QFileDialog

This needs to be done to
dbdesign/dbdesign.cpp
dbdesign/cview.cpp

change
#include <kfiledialog.h>
to
#include <qfiledialog.h>

and
KFileDialog
to
QFileDialog

(2 occurences in each file)

voila, it compiled on my machine (and it works).

Best of Luck,
Robert Hjertmann Chrisitansen,
robert@hjertmann.dk

Discussion


Log in to post a comment.