[program-l] Re: c/c++ VS2010 build errors

  • From: "Tim Burgess" <tim@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Mon, 23 Aug 2010 16:03:59 +0100

That's what I thought, so I checked the linkage properties and all the required 
.lib modules are listed.  The .lib provided by the manufacturer has been copied 
intot he same folder as the source files (I've done this with other projects 
and not had a problem), so I'm confused. 

Best wishes.

Tim Burgess
Raised Bar Ltd
Phone:  +44 (0)1827 719822

Don't forget to vote for improved access to music and music technology at

http://www.raisedbar.net/petition.htm
 


-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Lubos Pintes
Sent: 23 August 2010 09:05
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: c/c++ VS2010 build errors

Hi,
It looks like you forgot to add some object files / libraries.
Dňa 19.8.2010 12:31, Tim Burgess wrote / napísal(a):
> Hi,
>
> I'm trying to compile a project issued by a hardware manufacturer to
> demonstrate their SDK.  The object files are created fine (excepting some
> warnings about the security of using sprintf), but the linker fails:
>
> 1>------ Build started: Project: Example, Configuration: Debug Win32 ------
> 1>Build started 8/19/2010 11:12:54.
> 1>InitializeBuildStatus:
> 1>   Touching "Debug\Example.unsuccessfulbuild".
> 1>ClCompile:
> 1>   AMtest.cpp
> 1>w:\visual studio 2010\projects\automap\example\amtest.cpp(33): warning
> C4996: 'sprintf': This function or variable may be unsafe. Consider using
> sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
> online help for details.
> ... (I've stripped out the additional sprintf warnings here)
> 1>AMtest.obj : error LNK2019: unresolved external symbol "class
> Automap::Connection * __stdcall Automap::Connect(class Automap::Client
> *,enum AutomapConnectionStatus *)"
> (?Connect@Automap@@YGPAVConnection@1@PAVClient@1@PAW4AutomapConnectionStatus
> @@@Z) referenced in function "public: __thiscall
> TestClient::TestClient(void)" (??0TestClient@@QAE@XZ)
> 1>AMtest.obj : error LNK2019: unresolved external symbol "public: __thiscall
> Automap::GUID::GUID(char const *)" (??0GUID@Automap@@QAE@PBD@Z) referenced
> in function "public: virtual class Automap::GUID __thiscall
> TestClient::GetGUID(void)const "
> (?GetGUID@TestClient@@UBE?AVGUID@Automap@@XZ)
> 1>AMtest.obj : error LNK2019: unresolved external symbol "void __stdcall
> Automap::Disconnect(class Automap::Connection *)"
> (?Disconnect@Automap@@YGXPAVConnection@1@@Z) referenced in function "public:
> virtual __thiscall TestClient::~TestClient(void)" (??1TestClient@@UAE@XZ)
> 1>W:\Visual Studio 2010\Projects\AutoMap\example\Debug\Example.exe : fatal
> error LNK1120: 3 unresolved externals
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:08.09
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> I've checked that the header files provided are incorporated into the
> project and that the provided .lib file, which is referenced in the project
> properties|Linker settings,  is in the same folder as the project source
> files, so I can't understand why the code can't resolve the calls.
>
> Any ideas/suggestions, please?
>
> P.S.  This project has evolved out of the previous MIDI-based project which
> is now available for free download at http://www.raisedbar.net as a public
> beta - many thanks for all the help I received on this list to get that
> going.
>
> Best wishes.
>
> Tim Burgess
> Raised Bar Ltd
> Phone:  +44 (0)1827 719822
>
> Don't forget to vote for improved access to music and music technology at
>
> http://www.raisedbar.net/petition.htm
>
>
>
> ** To leave the list, click on the immediately-following link:-
> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
> ** If this link doesn't work then send a message to:
> ** program-l-request@xxxxxxxxxxxxx
> ** and in the Subject line type
> ** unsubscribe
> ** For other list commands such as vacation mode, click on the
> ** immediately-following link:-
> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
> ** or send a message, to
> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
>
>    

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: