Ok. I just got The Premier Press book “focus on SDL” today, and I’m kind of having some trouble with it. I came to this forum because Ernest Pazera(the author) is apparently a mod for Iso land.
My problem is that I’m having trouble setting up for SDL with VSC++.net. The book goes through setting up on a vs6 environment, and the menu structures are quite differant.
I’ve, managed to set up the lib and include files. My problem is specifically creating an SDL project.
I can’t seem to figure out how to do the following:
find the project->settings: select the link tab in the dialog.
type sdl.lib and sdlmain.lib in the object/library modules text box
select the c/c++ tab. From the catagory drop-down menu, select the code generation option
from the run-time library drop down menu select multithreaded dll.
Again, to reiterate, due to the fact that .net has a differant menu structure and felt it necessary to rename everything I can’t find where I’m supposed to do all this stuff.
Ok. I just got The Premier Press book “focus on SDL” today, and I’m
kind of having some trouble with it. I came to this forum because
Ernest Pazera(the author) is apparently a mod for Iso land.
My problem is that I’m having trouble setting up for SDL with VSC++.net. The book goes through setting up on a vs6 environment, and
the menu structures are quite differant.
I’ve, managed to set up the lib and include files. My problem is
specifically creating an SDL project.
I can’t seem to figure out how to do the following:
find the project->settings: select the link tab in the dialog.
type sdl.lib and sdlmain.lib in the object/library modules text box
select the c/c++ tab. From the catagory drop-down menu, select the
code generation option
from the run-time library drop down menu select multithreaded dll.
Again, to reiterate, due to the fact that .net has a differant menu
structure and felt it necessary to rename everything I can’t find
where I’m supposed to do all this stuff.
Maybe look through some of the newer opensource games which work on
windows, and see if there are some vs project files.
The link part can be found by right clicking on the project(right side
of screen) and then selecting properties. Then you get a dialog where
you can change the linker args, and the include args. Note that the
settings are different for release, and debug. So you’ll have to change
both.
I’ve just been forced recently to use vs rather than mingw(damn c++
binary incompatibility!) so I don’t know the rest of your questions
Well, what I’m writing here might not what you are askings, anyway…
I had the same problems until I did what is written in the visualc.html
doc.
Put the headers in a subdirectory of your project, put the libs there
too and add them to it as existing items (right-clicking on the project
tree). This is the easiest way to set-up SDL
I tried following visualc.html with the same results. There is just
something about .net that isn’t cooperating… or something I’m not seeing.
I managed to figure my way through the interface to do all the stuff below
but I keep getting linker errors.
blah.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in
function _SDL_main
blah.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in
function _SDL_main
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain at 16 referenced in function _WinMainCRTStartup
Has anyone used SDL successfully with VC++.net out there?> ----- Original Message -----
From: hr_hristov@hotmail.com (Hri)
To:
Sent: Monday, May 12, 2003 10:49 AM
Subject: [SDL] Re: Problems with VS.net
Well, what I’m writing here might not what you are askings, anyway…
I had the same problems until I did what is written in the visualc.html
doc.
Put the headers in a subdirectory of your project, put the libs there
too and add them to it as existing items (right-clicking on the project
tree). This is the easiest way to set-up SDL
I can mail you a small SDL project if you like… (I hope it would work
when transferred to another machine).
What you get is the same I have. Just start completely new project and
follow exaclty what it is written in the visualc.html. Use
multi-threaded dll in c++ code generation, change _tmain to main TCHAR
to char and if you like you can remove the precompiled headers option
and add the libs to your project just as if you would like to add any
other external files (Add an Existing Item). No paths settings are
necessary.
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain at 16 referenced in function _WinMainCRTStartup
I googled this one up, I recognized it from my past.
“The linker is looking for the entry point for a console application, but
the application is being compiled and linked as a windows application (i.e.
not a console application).”
Good luck,
Patrick.>
----- Original Message -----
From: “Hri” <hr_hristov at hotmail.com>
To:
Sent: Monday, May 12, 2003 10:49 AM
Subject: [SDL] Re: Problems with VS.net
Well, what I’m writing here might not what you are askings, anyway…
I had the same problems until I did what is written in the visualc.html
doc.
Put the headers in a subdirectory of your project, put the libs there
too and add them to it as existing items (right-clicking on the project
tree). This is the easiest way to set-up SDL
OK. I think I have it working now. I can’t put the .lib files in with the
linker properties for some reason, but if I add them to the project it
works. I also noticed that for some reason my code generation reverted to
single generation–when I switched it to multi threaded it worked(although I
have no idea why it reverted).> ----- Original Message -----
From: patrick@2dgame-tutorial.com (Patrick Kooman)
To:
Sent: Monday, May 12, 2003 2:09 PM
Subject: Re: [SDL] Re: Problems with VS.net
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain at 16 referenced in function _WinMainCRTStartup
I googled this one up, I recognized it from my past.
“The linker is looking for the entry point for a console application, but
the application is being compiled and linked as a windows application
(i.e.
not a console application).”
Good luck,
Patrick.
----- Original Message -----
From: “Hri” <hr_hristov at hotmail.com>
To:
Sent: Monday, May 12, 2003 10:49 AM
Subject: [SDL] Re: Problems with VS.net
Well, what I’m writing here might not what you are askings, anyway…
I had the same problems until I did what is written in the
visualc.html
doc.
Put the headers in a subdirectory of your project, put the libs there
too and add them to it as existing items (right-clicking on the
project