I clicked on the first link and followed the instructions
I added this code into simpmap after CS_IMPLEMENT_APPLICATION
using namespace CS::Threading; //line 25
class MyRunner : Runnable //line 28
{
void Run ()
{
printf("1\n");
csSleep (1000);
printf("2\n");
csSleep (1000);
printf("3\n");
csSleep (1000);
printf("4\n");
csSleep (1000);
printf("5\n");
csSleep (1000);
printf("6\n");
csSleep (1000);
printf("7\n");
csSleep (1000);
printf("8\n");
csSleep (1000);
printf("9\n");
csSleep (1000);
printf("10\n");
csSleep (1000);
}
};
When I compiled, I received the following errors:
apps/tutorial/simpmap/simpmap.cpp:25: error: Threading is not a namespace-name
apps/tutorial/simpmap/simpmap.cpp:25: error: expected namespace-name before ;
token
apps/tutorial/simpmap/simpmap.cpp:28: error: expected class-name before {
token
Any help is appreciated,
Jim
"Marten (dev) Svanfeldt" <[EMAIL PROTECTED]> wrote: Maybe start by reading the
manual and API documentation?
http://www.crystalspace3d.org/docs/online/manual/Threading.php#0
http://www.crystalspace3d.org/docs/online/api/namespaceCS_1_1Threading.php
-Marten
Quoting Jim Sager :
> I want to create a thread that simply prints"Hello".
> I can't figure out the syntax reading the API, and I couldn't
> threads in any examples.
>
> I know threads aren't easy, but I know their theory, just not the CS syntax.
>
> I was actually using a different library to use threads, but I found
> CS uses them so I figure I should use CS for threads.
>
> ,CrazyJim
>
>
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]