Building in VC++

Hey guys,

I am making a program for a friend’s birthday. Usually I would use Linux but he only uses Windows. So I whent on a Windows machine with VC++ 6.0 . But when I try to build I get the folowing:

Linking…
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol _SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

What is with that? I dont get programming in Windows and I wouldn’t do it if I did’nt have to.

Thanks,
Rafik

Rafik Rezzik

// Teen programmer, sports freak, and computer/console gamer //
// //
// TuxTris - http://lgaming.sf.net //
// //
// I need a job if anyone feels like hiring me :slight_smile: In Ottawa //---------------------------------
Post your free ad now! Yahoo! Canada Personals

Hi,

I am fairly sure that this happens if main() isn’t declared exactly
like this:

int main( int argc, char *argv[] )
{

}

cheers,
John.> ----- Original Message -----

From: rafik_rezzik@yahoo.ca (Rafik Rezzik)
To:
Sent: Thursday, May 29, 2003 10:01 PM
Subject: [SDL] Building in VC++

Hey guys,

I am making a program for a friend’s birthday. Usually I would use Linux
but he only uses Windows. So I whent on a Windows machine with VC++ 6.0 .
But when I try to build I get the folowing:

Linking…
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

What is with that? I dont get programming in Windows and I wouldn’t do it
if I did’nt have to.

Thanks,
Rafik

Rafik Rezzik

// Teen programmer, sports freak, and computer/console gamer //
//
//
// TuxTris - http://lgaming.sf.net
//
//
//
// I need a job if anyone feels like hiring me :slight_smile: In Ottawa //


Post your free ad now! Yahoo! Canada Personals

— John Popplewell
wrote: > Hi,>

I am fairly sure that this happens if main() isn’t
declared exactly
like this:

int main( int argc, char *argv[] )
{

}

cheers,
John.

----- Original Message -----
From: “Rafik Rezzik” <@Rafik_Rezzik>
To:
Sent: Thursday, May 29, 2003 10:01 PM
Subject: [SDL] Building in VC++

Hey guys,

I am making a program for a friend’s birthday.
Usually I would use Linux
but he only uses Windows. So I whent on a Windows
machine with VC++ 6.0 .
But when I try to build I get the folowing:

Linking…
sdlmain.lib(SDL_main.obj) : error LNK2001:
unresolved external symbol
_SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1
unresolved externals
Error executing link.exe.

What is with that? I dont get programming in
Windows and I wouldn’t do it
if I did’nt have to.

Thanks,
Rafik

Rafik Rezzik

// Teen programmer, sports freak, and
computer/console gamer //
//
//
// TuxTris - http://lgaming.sf.net
//
//
//
// I need a job if anyone feels like hiring me :slight_smile:
In Ottawa //


Post your free ad now! Yahoo! Canada Personals


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Yep that was the reason. Thanks John :slight_smile:

=====
Rafik Rezzik

// Teen programmer, sports freak, and computer/console gamer //
// //
// TuxTris - http://lgaming.sf.net //
// //
// I need a job if anyone feels like hiring me :slight_smile: In Ottawa //


Post your free ad now! http://personals.yahoo.ca

Hello

did you red the VC++ build information on SDL package ?

Your project must have the runtime library configured as a Multithreaded DLL to compil succesfully.

Hey guys,

I am making a program for a friend’s birthday. Usually I would use Linux but he only uses Windows. So I whent on a Windows machine with VC++ 6.0 . But when I try to build I get the folowing:

Linking…
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol _SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

What is with that? I dont get programming in Windows and I wouldn’t do it if I did’nt have to.

— Carlos wrote: > Hello

did you red the VC++ build information on SDL
package ?

Your project must have the runtime library
configured as a Multithreaded DLL to compil
succesfully.

Hey guys,

I am making a program for a friend’s birthday.
Usually I would use Linux but he only uses Windows.
So I whent on a Windows machine with VC++ 6.0 . But
when I try to build I get the folowing:

Linking…
sdlmain.lib(SDL_main.obj) : error LNK2001:
unresolved external symbol _SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1
unresolved externals
Error executing link.exe.

What is with that? I dont get programming in
Windows and I wouldn’t do it if I did’nt have to.
Yah the problem was solved already. Thanks=====
Rafik Rezzik

// Teen programmer, sports freak, and computer/console gamer //
// //
// TuxTris - http://lgaming.sf.net //
// //
// I need a job if anyone feels like hiring me :slight_smile: In Ottawa //


Post your free ad now! http://personals.yahoo.ca

I have .NET. Why have I to include the libs in the project for the linker to find them and it doesn’t work if I just set the appropriate path in the properties config dialog? Any idea?
“Carlos” wrote in message news:003201c328db$6613d330$db01a8c0 at carlos…
Hello

did you red the VC++ build information on SDL package ?

Your project must have the runtime library configured as a Multithreaded DLL to compil succesfully.

Hey guys,

I am making a program for a friend's birthday. Usually I would use Linux but he only uses Windows. So I whent on a Windows machine with VC++ 6.0 . But when I try to build I get the folowing:

Linking...
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol _SDL_main
Debug/Birthday.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

What is with that? I dont get programming in Windows and I wouldn't do it if I did'nt have to.