Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Visual studio 2010 linker error

Author
Message
Alain91
13
Years of Service
User Offline
Joined: 20th Aug 2011
Location: France
Posted: 12th May 2012 13:14
Hello AppGameKit fans !

In order to try agk native developement with visual studio c 2010 express, I have this message :

LINK : fatal error LNK1104: cannot open file 'atlsd.lib'

Could you help me ?

Regards,
Alain
7RS
12
Years of Service
User Offline
Joined: 10th May 2012
Location:
Posted: 12th May 2012 13:18
Hi,
I have the same problem, before i miss VS2008 and i had a lot of link errors now after i have installed the VS2008 i have this kind of error.

LINK : fatal error LNK1104: cannot open file 'atlsd.lib'
Alain91
13
Years of Service
User Offline
Joined: 20th Aug 2011
Location: France
Posted: 12th May 2012 15:18
I tried ignoring atlsd.lib, but it was already ignored on the linker settings..

Any help ?

Perhaps that someone could give us a simple vs2010 project to test ?

Alain
Alain91
13
Years of Service
User Offline
Joined: 20th Aug 2011
Location: France
Posted: 12th May 2012 16:05 Edited at: 12th May 2012 16:10
It seems that the linker ignore settings is wrong :

On the project title in visual c++ :

properties / linker / input / ignore specific default libraries

it is

atls.lib atlsd.lib;%(IgnoreSpecificDefaultLibraries)

but it miss a ;

I replaced with

atls.lib;atlsd.lib;%(IgnoreSpecificDefaultLibraries)

and I have no more atlsd.lib error.


But now, I have a lot of other link errors ...............

1>AGKWindows.lib(DataMask.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (?_Orphan_all@_Container_base_secure@std@@QBEXXZ)
1>AGKWindows.lib(ECI.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>AGKWindows.lib(BitSource.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
1>AGKWindows.lib(CharacterSetECI.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)

and a lot more
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th May 2012 17:17
Install VS2008.
In VS2010 set libraries to V90 and all errors will disappear
7RS
12
Years of Service
User Offline
Joined: 10th May 2012
Location:
Posted: 12th May 2012 17:24
Is not true.
I have installed VC2008 and i have VS2010, i have changed the v90 i have tried all the suggested things but nothing seem to work. I invite to post only to peoples who really have solved the problem not to peoples who have the VS2008 installed since long with other version of VS that maybe also help.

I followed all the possible setting suggested but i still can't compile and i have to work on Mac only that isn't the best solution for me.

Thanks.
7RS
12
Years of Service
User Offline
Joined: 10th May 2012
Location:
Posted: 12th May 2012 17:26
This is what i have now after the last few setting


1>AGKWindows.lib(WindowsCore.obj) : error LNK2019: unresolved external symbol __imp__CommDlgExtendedError@0 referenced in function "public: bool __thiscall AGK::cImage::ChooseFromSystem(void)" (?ChooseFromSystem@cImage@AGK@@QAE_NXZ)
1>AGKWindows.lib(WindowsCore.obj) : error LNK2019: unresolved external symbol __imp__GetOpenFileNameA@4 referenced in function "public: bool __thiscall AGK::cImage::ChooseFromSystem(void)" (?ChooseFromSystem@cImage@AGK@@QAE_NXZ)
1>AGKWindows.lib(WindowsCore.obj) : error LNK2019: unresolved external symbol __imp__PrintDlgA@4 referenced in function "public: void __thiscall AGK::cImage:rint(float)" (?Print@cImage@AGK@@QAEXM@Z)
1>C:\Users\BOSS\Desktop\SENTCOM_SVN\Debug\/Jax.exe : fatal error LNK1120: 3 unresolved externals
1>
1>Build FAILED.
Alain91
13
Years of Service
User Offline
Joined: 20th Aug 2011
Location: France
Posted: 12th May 2012 17:45
It works !

On the project title in visual c++ :

properties / general / platform toolset

choose v90

Thanks a lot bjadams
After all it is your fault if I switch on tier 2

I hope it will help you too 7RS !

Alain
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th May 2012 18:13
It's not my "fault", I think you will be better off in the long run by using T2!!!

If you go for a job interview, what will sound better:

1. I made a game with C++

or

2. I made a game with a propriety basic language?
Alain91
13
Years of Service
User Offline
Joined: 20th Aug 2011
Location: France
Posted: 12th May 2012 18:26
I think it would be :

3. I am able to make fast game that give fast money


Anyway I was kidding about your fault

Alain
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th May 2012 18:44
fast game = fast $$$

7RS
12
Years of Service
User Offline
Joined: 10th May 2012
Location:
Posted: 12th May 2012 19:58
I don't want to comment from how long i make games or i don't want to say who have skills or not. I only said i have installed VS2010 on a new machine, i have installed VC2008 as suggested, changed the setting of the template from v100 to v90 and doesn't compile, it return the link error on libs.

I have tried to fix the other things suggested and there are still problems.

Before speaking about another person be sure you know what you have done and much more you know what others have done in their life.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 14th May 2012 17:21
Quote: "LINK : fatal error LNK1104: cannot open file 'atlsd.lib'"


looks like it is fixed by

Quote: "atls.lib;atlsd.lib;%(IgnoreSpecificDefaultLibraries)"


Although I've not experienced this error.

Quote: "LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: void __thiscall "


Is cause by the VS2008 lib not being compatible with VS2010, you can either install VS2008 express and set the Platform Toolset to v90, or wait for us to release a VS2010 lib.

Quote: "LNK2019: unresolved external symbol __imp__GetOpenFileNameA@4 referenced in function "public: bool __thiscall AGK::cImage::ChooseFromSystem(void)""


Suggests that the project can't find the system library Comdlg32.lib, I think VS2010 did away with the global directories path in Tools->options->VC++Directories and you now have to set them per project.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 16th May 2012 00:35
The good news is that build 1074 will ship with a complete set of Visual Studio 2010 debug and release libraries, and a modified template for VS2010 which you can simply load and compile in VS2010 no problems. Hopefully this remedies the current difficulties for those users who have chosen a VS2010 development path for T2. We have removed the native example projects for VS2010 which we try out the new libs and template, so please report any strangeness to the usual place (http://code.google.com/p/agk/issues/list).

I drink tea, and in my spare time I write software.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th May 2012 00:38

Login to post a reply

Server time is: 2024-11-23 12:38:55
Your offset time is: 2024-11-23 12:38:55