A unique identifier?

Need help with C, C++, perl, python, etc?

A unique identifier?

Postby this213 » 2006-10-08 21:48

A unique identifier?

Just wondering if there's some environment variable or something defined in some header file somewhere that will tell me I'm on a Debian or Debian based system.

I'm having poroblems fixing the MySQL Control Center compilation issues for Debian and Ubuntu because qt is split between /usr/share/qt3 and /usr/include/qt3 and because qpopmenu.h has been renamed to qpopupmenu.h on these systems.

If someone knows a better way to fix these issues, I'm open to suggestion.

Thanks

*edit:
I should point out that hard coded fixes aren't an option, it still has to work on every other distro out there (which it does now AFAIK).
this213
 
Posts: 2
Joined: 2006-10-08 21:42

Postby ajdlinux » 2006-10-08 22:10

Have a look at how KDE and some of the other Qt based systems handle it.

Also there is a file /etc/debian_version that states the Debian version.
Jabber: xmpp:ajdlinux@jabber.org.au
Spammers, email this: ajdspambucket@exemail.com.au
ajdlinux
 
Posts: 2480
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

Postby this213 » 2006-10-08 22:49

Yeah, I was being stupid again (certainly not the first time). On opening qpopmenu.h, I was greeted with this:
Code: Select all
#ifndef QPOPMENU_H
#define QPOPMENU_H
#include "qpopupmenu.h"
#endif

In my defense, I didn't write mysqlcc, I'm merely trying to make it usable again. Also, I've done practically nothing with QT in the past (I don't even like KDE - strictly Gnome and Fluxbox for me).

Thanks though.
this213
 
Posts: 2
Joined: 2006-10-08 21:42


Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable