1 Jun 2005 11:56
Re: intermixing c code and sdl
APR Trainees <apr.trainees <at> gmail.com>
2005-06-01 09:56:01 GMT
2005-06-01 09:56:01 GMT
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 variablei 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
RSS Feed