rlib on linux

Ron Earley <[email protected]> Thu, 15 Mar 2012 10:54:49 -0700
Newsgroups gmane.text.rlib.user
Message-ID <361FC21836C35F4DA4C9D78CC7324461016A1D688051@EXVMBX015-4.exch015.msoutlookonline.net>
--===============4516103709812437743==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_361FC21836C35F4DA4C9D78CC7324461016A1D688051EXVMBX0154e_"

--_000_361FC21836C35F4DA4C9D78CC7324461016A1D688051EXVMBX0154e_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,



I'm trying to build my first app using rlib.  I installed and built the bin=
aries and so forth - no problem.



Using eclipse, I created a C++ project - hello world, and added the rlib he=
ader.  The compiler laughed at me and so I included paths to rlib, libxml a=
nd 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 na=
me a type

/usr/include/glib-2.0/glib/gfileutils.h:83: error: expected ',' or '...' be=
fore '*' token

/usr/include/glib-2.0/glib/gfileutils.h:84: error: ISO C++ forbids declarat=
ion of 'gchar' with no type

/usr/include/glib-2.0/glib/gfileutils.h:85: error: expected ',' or '...' be=
fore '*' token

/usr/include/glib-2.0/glib/gfileutils.h:88: error: ISO C++ forbids declarat=
ion of 'gchar' with no type

/usr/include/glib-2.0/glib/gfileutils.h:89: error: expected ',' or '...' be=
fore '*' token

/usr/include/glib-2.0/glib/gfileutils.h:92: error: ISO C++ forbids declarat=
ion of 'gchar' with no type



This goes on for several hundred lines.  My main and only source file is be=
low:



#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






--_000_361FC21836C35F4DA4C9D78CC7324461016A1D688051EXVMBX0154e_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:m=3D"http://schema=
s.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html=
40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=
=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.5pt;
	font-family:Consolas;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:Consolas;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoPlainText>Hello,<o:p></=
o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainTex=
t>I'm trying to build my first app using rlib.&nbsp; I installed and built =
the binaries and so forth - no problem.<o:p></o:p></p><p class=3DMsoPlainTe=
xt><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>Using eclipse, I created a =
C++ project - hello world, and added the rlib header.&nbsp; The compiler la=
ughed at me and so I included paths to rlib, libxml and glib.<o:p></o:p></p=
><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>So No=
w I get:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p clas=
s=3DMsoPlainText>/usr/include/glib-2.0/glib/gfileutils.h:72: error: &#8216;=
GQuark&#8217; does not name a type<o:p></o:p></p><p class=3DMsoPlainText>/u=
sr/include/glib-2.0/glib/gfileutils.h:74: error: &#8216;GFileError&#8217; d=
oes not name a type<o:p></o:p></p><p class=3DMsoPlainText>/usr/include/glib=
-2.0/glib/gfileutils.h:83: error: expected &#8216;,&#8217; or &#8216;...&#8=
217; before &#8216;*&#8217; token<o:p></o:p></p><p class=3DMsoPlainText>/us=
r/include/glib-2.0/glib/gfileutils.h:84: error: ISO C++ forbids declaration=
 of &#8216;gchar&#8217; with no type<o:p></o:p></p><p class=3DMsoPlainText>=
/usr/include/glib-2.0/glib/gfileutils.h:85: error: expected &#8216;,&#8217;=
 or &#8216;...&#8217; before &#8216;*&#8217; token<o:p></o:p></p><p class=
=3DMsoPlainText>/usr/include/glib-2.0/glib/gfileutils.h:88: error: ISO C++ =
forbids declaration of &#8216;gchar&#8217; with no type<o:p></o:p></p><p cl=
ass=3DMsoPlainText>/usr/include/glib-2.0/glib/gfileutils.h:89: error: expec=
ted &#8216;,&#8217; or &#8216;...&#8217; before &#8216;*&#8217; token<o:p><=
/o:p></p><p class=3DMsoPlainText>/usr/include/glib-2.0/glib/gfileutils.h:92=
: error: ISO C++ forbids declaration of &#8216;gchar&#8217; with no type<o:=
p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlai=
nText>This goes on for several hundred lines.&nbsp; My main and only source=
 file is below:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p>=
<p class=3DMsoPlainText>#include &quot;rlib.h&quot;<o:p></o:p></p><p class=
=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>#include &lt;i=
ostream&gt;<o:p></o:p></p><p class=3DMsoPlainText>using namespace std;<o:p>=
</o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainT=
ext>int main() {<o:p></o:p></p><p class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; cout &lt;&lt; &quot;!!!Hello World!!!&quot; &lt;&lt; endl; // pr=
ints !!!Hello World!!!<o:p></o:p></p><p class=3DMsoPlainText>&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; return 0;<o:p></o:p></p><p class=3DMsoPlainText>}<o:p></o:=
p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>=
Not really sure what the problem is, but it's probably something simple.<o:=
p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlai=
nText>Any help would be appreciated!<o:p></o:p></p><p class=3DMsoPlainText>=
<o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>thx<o:p></o:p></p><p class=3DM=
soPlainText>ron<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p>=
<p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p></div></body></html>=

--_000_361FC21836C35F4DA4C9D78CC7324461016A1D688051EXVMBX0154e_--


--===============4516103709812437743==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--===============4516103709812437743==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Rlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rlib-users

--===============4516103709812437743==--