when I begin a program I start with…
#include SDL.h
int main()(int argc, char*, arvg[])
{
but always get an error saying SDL.h is not in the series…does anyone have
a theory on this.
Bobby.
when I begin a program I start with…
#include SDL.h
int main()(int argc, char*, arvg[])
{
but always get an error saying SDL.h is not in the series…does anyone have
a theory on this.
Bobby.
Hello !
when I begin a program I start with…
#include SDL.h
You must write it so :
#include “SDL.h”
int main()(int argc, char*, arvg[])
This is also wrong :
int main (int argc, char *argv [])
CU
Strange error, but there are a couple things wrong with this…
#include SDL.h
int main()(int argc, char*, arvg[])
{
The SDL.h should be in “” or in <>, and there should only be two
arguments in main, it should look like this:
#include “SDL.h”
int main(int argc, char* argv[])
{
/*…main code */
return 0;
}
Lucas
Hi,
Welcome to the world of C programming!
“Give a man a computer and you’ll frustrate him for a day, teach him to
program and you’ll frustrate him for LIFE!”
If you’re serious about learning to write C, invest in a copy of “The C
Programming Language” by Kernighan & Ritchie ISBN 0131103628. Will set
you back about ?20 / $40; money well-spent.
You may find that some compilers will complain if you write:
int main(int argc, char *argv[])
try
int main(int argc, char **argv)
instead (they actually mean the same). You don’t actually need the
parameters, unless you’re going to use them; when starting out, it is
perfectly acceptable to write:
int main()
but not
int main(void)
as this has a different meaning.
Jitsu Love,
Eddy
bobbybostick wrote:> when I begin a program I start with…
#include SDL.h
int main()(int argc, char*, arvg[])
{
but always get an error saying SDL.h is not in the series…does anyone have
a theory on this.Bobby.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
If so, the compiler is defective. Replace it with a newer compiler.
JeffOn Fri May 9 2008 03:05, Eddy Cullen wrote:
You may find that some compilers will complain if you write:
int main(int argc, char *argv[])