|
From: Ron E. <re...@sk...> - 2012-03-15 17:55:01
|
Hello,
I'm trying to build my first app using rlib. I installed and built the binaries and so forth - no problem.
Using eclipse, I created a C++ project - hello world, and added the rlib header. The compiler laughed at me and so I included paths to rlib, libxml and glib.
So Now I get:
/usr/include/glib-2.0/glib/gfileutils.h:72: error: 'GQuark' does not name a type
/usr/include/glib-2.0/glib/gfileutils.h:74: error: 'GFileError' does not name a type
/usr/include/glib-2.0/glib/gfileutils.h:83: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gfileutils.h:84: error: ISO C++ forbids declaration of 'gchar' with no type
/usr/include/glib-2.0/glib/gfileutils.h:85: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gfileutils.h:88: error: ISO C++ forbids declaration of 'gchar' with no type
/usr/include/glib-2.0/glib/gfileutils.h:89: error: expected ',' or '...' before '*' token
/usr/include/glib-2.0/glib/gfileutils.h:92: error: ISO C++ forbids declaration of 'gchar' with no type
This goes on for several hundred lines. My main and only source file is below:
#include "rlib.h"
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
Not really sure what the problem is, but it's probably something simple.
Any help would be appreciated!
thx
ron
|