Can some one have a look at this problem that has been frustrating the
living daylights out of me?
Frustrating because I have pretty much tried everything and dont know what
to do next and had zero responses in the forum.
Regards, David---------- Forwarded message ----------
From: @David_Ong (David Ong)
Date: Mon, Jan 28, 2013 at 4:20 AM
Subject: Re: severe linking errors - 9 of them even after forum hopping
To: Sam Lantinga
Well your SDL folder has 2 sub folders in the lib folder (.15 version that
im using)
- x64
2)x86
I tried copying the contents of both into the folder
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\SDL
yes my os was installed in D drive.
Also im using Visual Studio 2012 express not 2010 express but i didnt know
where else to put them. Is it possible im putting it in the wrong folder.
Also my win7 is a 64 bit version. So which of the 2 subfolders folders am i
ment to use? Why are there 2 of them?
Also Im wondering if im copying into the wrong folder (destination) if i
had VS2010 and upgraded to 2012 express and 2012 express has a diferent
directory. U know what i mean?
Anyways I continued following the tutorial procedure in youtube and pasted:
linked up those libs in my library directories section of VC++ Directories
section of configuration properties in Property Pages
So now Library Directories says: D:\Program Files %28x86%29\Microsoft
Visual Studio 10.0\VC\lib\SDL;$(LibraryPath)
Anyways I have linked a cut up version of my project, just the bare
essentials to run and test the setup of SDL a
http://www.fiestabrochure.com/xxxx.zip
Dont worry no wares or anything like that… i would be reeeaaaaly grateful
if u would have a look at it!
It only has main function and a bunch of includes and not to mention the
library linking settings as well as any .h included in the solution
explorerer, i have taken the liberty of also including the sdl.h from the
libarary i copy pasted into but it still didnt make any diference.
The solution file is lesson1
David
On Mon, Jan 28, 2013 at 12:01 AM, Sam Lantinga wrote:
It just looks like SDL isn’t getting linked at all. The libraries on the
website are 32-bit. Did you build 64-bit libraries yourself? Are you
using SDL 1.2 or 2.0?On Sun, Jan 27, 2013 at 4:49 AM, David Ong <@David_Ong> wrote:
Im using VS 2012 and I followed all the instructions here:
http://www.youtube.com/watch?v=2ulKz8gfLDk
but still ended uo with these:
1>main.obj : error LNK2019: unresolved external symbol _SDL_FreeSurface
referenced in function “unsigned int __cdecl loadTexture(char const *)”
(?loadTexture@@YAIPBD at Z)
1>main.obj : error LNK2019: unresolved external symbol _SDL_LoadBMP_RW
referenced in function “unsigned int __cdecl loadTexture(char const *)”
(?loadTexture@@YAIPBD at Z)
1>main.obj : error LNK2019: unresolved external symbol _SDL_RWFromFile
referenced in function “unsigned int __cdecl loadTexture(char const *)”
(?loadTexture@@YAIPBD at Z)
1>main.obj : error LNK2019: unresolved external symbol _SDL_Quit
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _SDL_Flip
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _SDL_FillRect
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _SDL_MapRGB
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _SDL_SetVideoMode
referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _SDL_Init
referenced in function _main1>D:\Users\darkdave\Desktop\part3\xxxx\Debug\lesson1.exe : fatal error
LNK1120: 9 unresolved externalsIm using win7 on a 64 bit system. And yes i did use the 64 bit libs and
linked them all up. Even experimented with switching between window and
console and the main function having various arguments as suggested in the
forums outside of your site, im still yet to be approved by the forum
moderator.David