Jump to content

  • Log In with Google      Sign In   
  • Create Account

Clanlib compiling programs


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 worvy   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 August 2001 - 01:23 AM

I got the Clanlib tutorial, and tried to compile the first example program. there is a problem ;It can''t compile. It says there is a parse error before the ''{'' after class hello : public CL_ClanApplication I am also using the -lclanLib option on g++. what''s going on?

Sponsor:

#2 Kylotan   Moderators   -  Reputation: 3338

Like
Likes
Like

Posted 27 August 2001 - 02:36 PM

"Parse Error" is a fancy way of saying there''s something spelt wrong, or something in the wrong place. The code doesn''t make sense. Check for spelling mistakes before the line it mentions. Check there aren''t any hidden characters that got in there somehow, especially if you just copy-pasted the code from somewhere.

#3 SketchTurner   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 August 2001 - 07:11 PM

Hi!

I know almost nothing about clanlib, but if you haven''t, you should suscribe in their mailing list, i''ve seen they reply most of the time.

See ya!

oro...?

#4 worvy   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 August 2001 - 09:09 PM

Well here is the code:

#include ClanLib/core.h
#include ClanLib/display.h
/*#include ClanLib/Core/System/setupcore.h
#include ClanLib/Display/setupdisplay.h
#include ClanLib/Sound/setupsound.h
#include ClanLib/Application/clanapp.h
#include ClanLib/Core/System/clanstring.h*/

class hello : public CL_ClanApplication {
virtual char *get_title();
virtual int main(int, char**);
} app;

p.s. all the #includes DO have triangle brackets but it won't display them for some reason.

Edited by - worvy on August 28, 2001 4:45:42 AM

#5 Sheep   Members   -  Reputation: 152

Like
Likes
Like

Posted 28 August 2001 - 08:42 AM

Hmmm... do all of the includes have /*...*/ around them? If so, they are commented out, and if not then I am an idiot, ok?

#6 Kylotan   Moderators   -  Reputation: 3338

Like
Likes
Like

Posted 28 August 2001 - 09:37 AM

My guess:
#include ClanLib/Application/clanapp.h is commented out
Therefore CL_ClanApplication isn''t defined.
Hence the parse error.


#7 worvy   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 August 2001 - 08:32 PM

Good thinking, Kylotan. Sorry I thought it was included by the core.h file!

thankyou so much

Well Sheep, that bit of code is cut & pasted from my code so, no, the includes aren''t comented out





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS