SDL in Microsoft Visual Studio C++ .NET (dot net) (version 7)

Hi!
I can’t get SDL to work with Visual C++ .NET.
I’ve used SDL with Visual C++ 6.0 and under linux for a year without problems,
but now it won’t work.
I’ve followed the instructions in VisualC.html that comes with the latest SDL
dev package for win.
I’ve added the include and lib paths and I’ve told it to use SDL.lib and
SDLmain.lib. I’ve told it to be Multi-threaded DLL.
I have a main.cpp as the only file in my “New Project -> Visual C++ Projects ->
Managed C++ Empty Project” (“Win 32 Project” creates a lot of files, I want to
start with a empty project) which containes the following:

 #include "SDL.h"

 int main( int argc, char* argv[] )
 {
   // Body of the program goes here.
   return 0;
 }

I get the following when I try to build the solution:

 fatal error LNK1561: entry point must be defined

Any help would be much appreciated.

Cheers,
Lars Englund - first post to the list :slight_smile:

 #include "SDL.h"

 int main( int argc, char* argv[] )
 {
   // Body of the program goes here.
   return 0;
 }

I get the following when I try to build the solution:

 fatal error LNK1561: entry point must be defined

May be you should check if you’ve selected SUBSYSTEM:CONSOLE or WINDOWS
in your project property (linker settings)On 19 Nov 2003 at 17:34, Lars Englund wrote:

You might need to actually link the SDLmain.lib and SDL.lib in MSVC++7
using:

#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)

Even if you have them in your project’s link settings. I’ve seen it link
SDL/SDLmain without them before, but it always links them properly if you
do this.

  • Silicon> ----- Original Message -----

From: lars.englund@home.se (Lars Englund)
To:
Sent: Wednesday, November 19, 2003 9:34 AM
Subject: [SDL] SDL in Microsoft Visual Studio C++ .NET (dot net) (version 7)

Hi!
I can’t get SDL to work with Visual C++ .NET.
I’ve used SDL with Visual C++ 6.0 and under linux for a year without
problems,
but now it won’t work.
I’ve followed the instructions in VisualC.html that comes with the latest
SDL
dev package for win.
I’ve added the include and lib paths and I’ve told it to use SDL.lib and
SDLmain.lib. I’ve told it to be Multi-threaded DLL.
I have a main.cpp as the only file in my “New Project -> Visual C++
Projects ->
Managed C++ Empty Project” (“Win 32 Project” creates a lot of files, I
want to
start with a empty project) which containes the following:

 #include "SDL.h"

 int main( int argc, char* argv[] )
 {
   // Body of the program goes here.
   return 0;
 }

I get the following when I try to build the solution:

 fatal error LNK1561: entry point must be defined

Any help would be much appreciated.

Cheers,
Lars Englund - first post to the list :slight_smile:


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


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/2003

Hi,

You want to make it a ‘Win 32 Project’, then in the Win 32 Application
Wizard, click on ‘Application Settings’ on the left hand side and then
select the ‘Empty Project’ checkbox. Managed C++ programs use the .NET
common language runtime - probably not what you really want.

Regards,

Mike Manley

Lars Englund wrote:> Hi!

I can’t get SDL to work with Visual C++ .NET.
I’ve used SDL with Visual C++ 6.0 and under linux for a year without
problems,
but now it won’t work.
I’ve followed the instructions in VisualC.html that comes with the
latest SDL
dev package for win.
I’ve added the include and lib paths and I’ve told it to use SDL.lib and
SDLmain.lib. I’ve told it to be Multi-threaded DLL.
I have a main.cpp as the only file in my “New Project -> Visual C++
Projects ->
Managed C++ Empty Project” (“Win 32 Project” creates a lot of files, I
want to
start with a empty project) which containes the following:

#include "SDL.h"

int main( int argc, char* argv[] )
{
  // Body of the program goes here.
  return 0;
}

I get the following when I try to build the solution:

fatal error LNK1561: entry point must be defined

Any help would be much appreciated.

Cheers,
Lars Englund - first post to the list :slight_smile:


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