I am new to SDL.I have started with the tutorials on Lazy foo Website.But I
am unable to work with the Play Sound Tutorial.
I am using Microsoft Visual Studio 2003 on windows Platform.I copied the
code and When I build I get error statingas follows,
Sound fatal error LNK1104: cannot open file ‘SDL.obj’
Please help me how to get deal with this kind of error.
Awaiting your reply…
Thank You.
With Reagrds.---------- Forwarded message ----------
From: @Pranav_Neeli (Pranav Neeli)
Date: Mon, Aug 8, 2011 at 5:05 PM
Subject: Regarding SDL.obj
To: jxb091000 at utdallas.edu
–
pranav
–
pranav
I am new to SDL.I have started with the tutorials on Lazy foo
Website.But I am unable to work with the Play Sound Tutorial.
I am using Microsoft Visual Studio 2003 on windows Platform.I copied the
code and When I build I get error statingas follows,
Sound fatal error LNK1104: cannot open file ‘SDL.obj’
I don’t know what Lazy Foo does exactly, but it looks like it wants you
to build SDL in addition to the tutorial’s code.
–ryan.
Thank you for your reply…
Will you say how to build SDL addition in addition to tutorial code.
I have been asking this question to many but got no helpful reply.
Thanks again…–
pranav
Hi,
Did you follow the instructions on how to setup SDL for VS2003 :
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet/index.php
?
Also, Mr. Foo says on that page,
“make sure you have the Visual Studio 2003 service
pack properly installed. If you don’t, SDL will not work”
Thanks,
Jonathan.On Wed, 10 Aug 2011, Ryan C. Gordon wrote:
I am new to SDL.I have started with the tutorials on Lazy foo
Website.But I am unable to work with the Play Sound Tutorial.
I am using Microsoft Visual Studio 2003 on windows Platform.I copied the
code and When I build I get error statingas follows,
Sound fatal error LNK1104: cannot open file ‘SDL.obj’
I don’t know what Lazy Foo does exactly, but it looks like it wants you to
build SDL in addition to the tutorial’s code.
–ryan.
To build SDL, first download the source code. Depending on which version of
SDL you are using, however, that may not be the best plan.
SDL 1.2
If you are trying to build SDL 1.2, then don’t. Go
herehttp://www.libsdl.org/download-1.2.php and
download the correct version. It should say “SDL-devel-1.2.14-VC6”
or “SDL-devel-1.2.14-VC8” depending on which version of Visual Studio you
are using. The VC8 should work with VC9/VC10.
SDL 1.3
You need the source code. Go here http://www.libsdl.org/hg.php and follow
the instructions to download it. If you want the absolutely latest version,
you will need the tool Mercurial http://mercurial.selenic.com/ to download
the source code. A good Windows version of that tool is called
TortoiseHghttp://tortoisehg.bitbucket.org/,
which has a graphical user interface. Once you have the source code, you
need to build it. Open the “VisualC” folder and select the appropriate *.sln
file and then Build Solution. Make sure you set whether you want “Debug” or
“Release”.
*Once you have .lib files
Since you are getting linker errors, you must have the *.h files in the
right spot, so all you need is the *.lib files to be included. Add them as
an additional dependency in MSVC. This is in the “Properties” page under
Linker>>Input>>Additional Dependencies. See attached image.
Good luck.
PatrickOn Thu, Aug 11, 2011 at 3:22 AM, Pranav Neeli wrote:
Thank you for your reply…
Will you say how to build SDL addition in addition to tutorial code.
I have been asking this question to many but got no helpful reply.
Thanks again…
–
pranav
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: linker.jpg
Type: image/jpeg
Size: 87318 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110811/1c16c659/attachment.jpg
Hi,
Did you follow the instructions on how to setup SDL for VS2003 :
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet/index.php
?
Also, Mr. Foo says on that page,
“make sure you have the Visual Studio 2003 service
pack properly installed. If you don’t, SDL will not work”
Thanks,
Jonathan.On Wed, 10 Aug 2011, Pranav Neeli wrote:
---------- Forwarded message ----------
From: Pranav Neeli
Date: Mon, Aug 8, 2011 at 5:05 PM
Subject: Regarding SDL.obj
To: jxb091000 at utdallas.edu
I am new to SDL.I have started with the tutorials on Lazy foo Website.But I am unable to
work with the Play Sound Tutorial.
I am using Microsoft Visual Studio 2003 on windows Platform.I copied the code and When I
build I get error statingas follows,
Sound fatal error LNK1104: cannot open file ‘SDL.obj’
Please help me how to get deal with this kind of error.
Awaiting your reply…
Thank You.
With Reagrds.
–
pranav
–
pranav
Unfortunately your question is very vague, very specific to a particular program, and lacks sufficient detail of this program’s build system to give a solid answer.On 08/11/2011 01:22 AM, Pranav Neeli wrote:
Thank you for your reply…
Will you say how to build SDL addition in addition to tutorial code.
I have been asking this question to many but got no helpful reply.
Thanks again…
–
pranav
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
LordHavoc
Author of DarkPlaces Quake1 engine - LadyHavoc's DarkPlaces Quake Modification
Co-designer of Nexuiz - Nexuiz Classic – Alientrap
“War does not prove who is right, it proves who is left.” - Unknown
“Any sufficiently advanced technology is indistinguishable from a rigged demo.” - James Klass
“A game is a series of interesting choices.” - Sid Meier
Hi,
Thank you for your reply…
Yes, I did follow every step in the tutorial.I could get the results for the
first two tutorials.
Initializing SDL and getting an image on the screen. But I am unable to get
the output for the third tutorial.
I have even setup the VC 2003 properly.
I tried asking this question to many people,but did not get any useful help,
please help me out with this…
Thanking You
With Regards–
pranav
Hi again Sir,
I also wanted to ask one more thing ,I don’t have the Service pack for VC
2003 edition.Is it really necessary or is it alright without that.
Because I got the first two tutorials working but not even one from the
third .
Please let me know,So that I decide whether or not to download Service Pack
for VC 2003.
Thanking You.
With Regards.–
pranav
not opening SDL.obj sounds like the file isn’t being found. Make sure
you’ve copied all the necessary files into the lib directory for
Visual C. Did the first two tutorials use Visual C? If so, it’s
unclear how you got through those two but not the third…
JohnOn Sat, Aug 13, 2011 at 12:35 PM, Pranav Neeli wrote:
Hi again Sir,
I also wanted to ask one more thing ,I don’t have the Service pack for VC
2003 edition.Is it really necessary or is it alright without that.
Because I got the first two tutorials working but not even one from the
third .
Please let me know,So that I decide whether or not to download Service Pack
for VC 2003.
Thanking You.
With Regards.
pranav
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Hi,
I assume you’ve setup your base SDL libraries for the project first as in
:
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet/index.php
and THEN afterwards followed the instructions here:
http://lazyfoo.net/SDL_tutorials/lesson03/windows/msvsnet/index.php
to setup the extensions. It sounds to me like you might have setup a blank
project for the third lesson and not done the initial setup again?
And he says it definitely is necessary to download the service packs, in
his words:
“If you don’t, SDL will not work with Visual Studio.NET 2003.”
Thanks,
Jonathan.On Sat, 13 Aug 2011, Pranav Neeli wrote:
Hi again Sir,
I also wanted to ask one more thing ,I don’t have the Service pack for VC 2003 edition.Is
it really necessary or is it alright without that.
Because I got the first two tutorials working but not even one from the third .
Please let me know,So that I decide whether or not to download Service Pack for VC 2003.
Thanking You.
With Regards.
pranav
Thank you for your time,
Sir,
What initial setup is to be done .
1.setting runtime library to Multithread
2.and pasting SDL_image.lib in the additional dependenicies field.
Is there anything else to be done.
Or this is enough.
Thanks again…–
pranav
Yes, I did that.After including SDL.lib and SDLmain.lib I added
SDL_image.lib.
What exactly is this SDL.obj file.–
pranav
What do you mean?
Are you asking what an “obj” file is in general?
If so : Object Module Format (Intel) - Wikipedia
As said before it’s something that is used when compiling SDL itself, if
so, why are you doing that? I don’t remember any tutorials using this.
I think what you need to use instead of the source is the Windows redist
of SDL (Which has no source) :
http://www.libsdl.org/release/SDL-devel-1.2.14-VC8.zip
If you’re having this much trouble with it though I would just use
something like cmake which is very simple to setup with SDL :
http://www.gpwiki.org/index.php/C:How_to_set_up_your_SDL_Build_Environment#CMake
Thanks,
Jonathan.On Tue, 16 Aug 2011, Pranav Neeli wrote:
?Yes, I did that.After including SDL.lib and SDLmain.lib I added SDL_image.lib.
? What exactly is this SDL.obj file.
?
pranav