Linker problems using sdl

I tried to make a simple program with SDL library both in Visual C++ 6 and
Borland c++ builder 6 but I got the same linker error.
It tells me that can’t find " int main() " method… Waht can I do??
It isn’t a compiler error so the compiler can find the library, but probably
there is something wrong!
Thank you in advance!!
Marco

Marco wrote:

I tried to make a simple program with SDL library both in Visual C++ 6 and
Borland c++ builder 6 but I got the same linker error.
It tells me that can’t find " int main() " method… Waht can I do??
It isn’t a compiler error so the compiler can find the library, but probably
there is something wrong!
Thank you in advance!!

There are more ways to do it. I find the simplest to just include
SDL_main.c in the project.–
Milan Babuskov
http://njam.sourceforge.net

Use “console application” project
if this not work
remove sdlmain.lib for imported libaries and include sdlmain.c into your
project.
I know it sucks but it works too

I tried to make a simple program with SDL library both in Visual C++ 6 and
Borland c++ builder 6 but I got the same linker error.
It tells me that can’t find " int main() " method… Waht can I do??
It isn’t a compiler error so the compiler can find the library, but
probably> there is something wrong!
Thank you in advance!!