Intermixing c code and sdl

hi friends,

i’m new to sdl.Been trying to learn it for the past 1 week.
However i don’t need to gte into its details but have to simulate just 1
algorithm.

I needed to use 5-6 variables at a global level i.e. the system level so
that all the blocks and their processes could use/modify them.

Since i was not able to use
DCL
a integer;

type statements for declaring at the system or block level (.sbk and .ssy)
i instead opted for c code.
used
/*#Code
#Type
int a;
*/

its working after i included ctypes.
the analysis hasn’t failed but the amke has failed.

I think that i’ve used c and sdl variable sin the same sttaement and that
could b a problem:
Let a=sdl variable and b=C variable

i had to do :
a:=b;

this didnt work and analysis failed.so i used
/*#code
a:=b;
*/
This passed the analysis but make failed.,…

i think this statement is causing a problem.So pls suggest how to use c and
sdl variables together.

Thanx

hi friends,

i’m new to sdl.Been trying to learn it for the past 1 week.
However i don’t need to gte into its details but have to simulate just 1
algorithm.

I needed to use 5-6 variables at a global level i.e. the system level so
that all the blocks and their processes could use/modify them.

Since i was not able to use
DCL
a integer;

type statements for declaring at the system or block level (.sbk and .ssy)
i instead opted for c code.
used
/*#Code
#Type
int a;
*/

its working after i included ctypes.
the analysis hasn’t failed but the amke has failed.

I think that i’ve used c and sdl variable sin the same sttaement and that
could b a problem:
Let a=sdl variable and b=C variable

i had to do :
a:=b;

this didnt work and analysis failed.so i used
/*#code
a:=b;
*/
This passed the analysis but make failed.,…

i think this statement is causing a problem.So pls suggest how to use c
and sdl variables together.

Thanx

It is not quite clear to me what you are asking. C is a language, and
SDL is a library that can be used with C and other languages.

Here are some tutorials:

http://www.libsdl.org/tutorials.php

Try working through 1 or more of these and create a program, then come
back with your questions.

Hope that helps,
ChrisOn 6/1/05, APR Trainees <apr.trainees at gmail.com> wrote:

i think this statement is causing a problem.So pls suggest how to use c and
sdl variables together.


E-Mail: Chris Nystrom
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris

Are you looking for help with the Telelogic TAU/SDL Suite for SDL the
Language? [http://www.telelogic.com/products/tau/languages/sdl.cfm]
(this line of thinking is based solely on the confusion of exactly what
your question is, and the references to .sbk and .ssy extensions, and my
use of Google). If so, you should look for other mailing lists, as this
list is for SDL the Library (Simple Direct media Layer).

Also, while you mentioned the C language, and properly created a
variable ‘int a’, you’re using Pascal/Delphi-like assign expressions
with a colon-equals (’ := ‘) while C uses only a lone equal sign (’ =
’), and this might be your problem.

APR Trainees wrote:> hi friends,

i’m new to sdl.Been trying to learn it for the past 1 week.
However i don’t need to gte into its details but have to simulate just
1 algorithm.

I needed to use 5-6 variables at a global level i.e. the system level
so that all the blocks and their processes could use/modify them.

Since i was not able to use
DCL
a integer;

type statements for declaring at the system or block level (.sbk and .ssy)
i instead opted for c code.
used
/*#Code
#Type
int a;
*/

its working after i included ctypes.
the analysis hasn’t failed but the amke has failed.

I think that i’ve used c and sdl variable sin the same sttaement and
that could b a problem:
Let a=sdl variable and b=C variable

i had to do :
a:=b;

this didnt work and analysis failed.so i used
/*#code
a:=b;
*/
This passed the analysis but make failed.,…

i think this statement is causing a problem.So pls suggest how to use
c and sdl variables together.

Thanx



SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl