You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Rajesh Khan <ra...@gmail.com> on 2012/10/16 01:26:12 UTC
Linker Error when attempting to create an individual separate new project
The examples and qpid compile and run without errors in visual studio C++
2010. Now I wish to create a new project from scratch.After changing the
properties of the new project.
Adding additional headers and library paths similar to the actual running
project and adding input fields in Linker >> input . I am still getting
this error
*Error 1 error LNK2001: unresolved external symbol "public: static
class qpid::messaging::Duration const qpid::messaging::Duration::SECOND"
(?SECOND@Duration@messaging@qpid@@2V123@B)
D:\qpid-0.18\TestProject\Qpid_Transmitter\HelloWorld\main.obj HelloWorld
Any suggestions on what I might be missing?
*
Re: Linker Error when attempting to create an individual separate new project
Posted by Rajesh Khan <ra...@gmail.com>.
Thanks chuck the problem was solved when I entered the relevant
Preprocessor definitions.
On Tue, Oct 16, 2012 at 7:35 AM, Chuck Rolke <cr...@redhat.com> wrote:
> Darryl is on the case. The undefined symbols you see are from missing
> dependency qpidtypes.
>
> In your project you must have Linker -> Input -> Additional Dependencies:
> qpidcommon(d).lib qpidcommon(d).lib qpidtypes(d).lib. Choose the (d)
> variants for debug builds.
>
> -Chuck
>
> ----- Original Message -----
> > From: "Darryl L. Pierce" <dp...@redhat.com>
> > To: users@qpid.apache.org
> > Sent: Tuesday, October 16, 2012 7:35:45 AM
> > Subject: Re: Linker Error when attempting to create an individual
> separate new project
> >
> > On Mon, Oct 15, 2012 at 05:26:12PM -0600, Rajesh Khan wrote:
> > > The examples and qpid compile and run without errors in visual
> > > studio C++
> > > 2010. Now I wish to create a new project from scratch.After
> > > changing the
> > > properties of the new project.
> > > Adding additional headers and library paths similar to the actual
> > > running
> > > project and adding input fields in Linker >> input . I am still
> > > getting
> > > this error
> > >
> > > *Error 1 error LNK2001: unresolved external symbol "public:
> > > static
> > > class qpid::messaging::Duration const
> > > qpid::messaging::Duration::SECOND"
> > > (?SECOND@Duration@messaging@qpid@@2V123@B)
> > > D:\qpid-0.18\TestProject\Qpid_Transmitter\HelloWorld\main.obj
> > > HelloWorld
> > >
> > > Any suggestions on what I might be missing?
> > > *
> >
> > What is the commandline you're using to build the app? Are you
> > linking
> > in the qpidmessaging and qpidtypes libraires?
> >
> > --
> > Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
> > Delivering value year after year.
> > Red Hat ranks #1 in value among software vendors.
> > http://www.redhat.com/promo/vendor/
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>
Re: Linker Error when attempting to create an individual separate
new project
Posted by Chuck Rolke <cr...@redhat.com>.
Darryl is on the case. The undefined symbols you see are from missing dependency qpidtypes.
In your project you must have Linker -> Input -> Additional Dependencies: qpidcommon(d).lib qpidcommon(d).lib qpidtypes(d).lib. Choose the (d) variants for debug builds.
-Chuck
----- Original Message -----
> From: "Darryl L. Pierce" <dp...@redhat.com>
> To: users@qpid.apache.org
> Sent: Tuesday, October 16, 2012 7:35:45 AM
> Subject: Re: Linker Error when attempting to create an individual separate new project
>
> On Mon, Oct 15, 2012 at 05:26:12PM -0600, Rajesh Khan wrote:
> > The examples and qpid compile and run without errors in visual
> > studio C++
> > 2010. Now I wish to create a new project from scratch.After
> > changing the
> > properties of the new project.
> > Adding additional headers and library paths similar to the actual
> > running
> > project and adding input fields in Linker >> input . I am still
> > getting
> > this error
> >
> > *Error 1 error LNK2001: unresolved external symbol "public:
> > static
> > class qpid::messaging::Duration const
> > qpid::messaging::Duration::SECOND"
> > (?SECOND@Duration@messaging@qpid@@2V123@B)
> > D:\qpid-0.18\TestProject\Qpid_Transmitter\HelloWorld\main.obj
> > HelloWorld
> >
> > Any suggestions on what I might be missing?
> > *
>
> What is the commandline you're using to build the app? Are you
> linking
> in the qpidmessaging and qpidtypes libraires?
>
> --
> Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
> Delivering value year after year.
> Red Hat ranks #1 in value among software vendors.
> http://www.redhat.com/promo/vendor/
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Linker Error when attempting to create an individual separate
new project
Posted by "Darryl L. Pierce" <dp...@redhat.com>.
On Mon, Oct 15, 2012 at 05:26:12PM -0600, Rajesh Khan wrote:
> The examples and qpid compile and run without errors in visual studio C++
> 2010. Now I wish to create a new project from scratch.After changing the
> properties of the new project.
> Adding additional headers and library paths similar to the actual running
> project and adding input fields in Linker >> input . I am still getting
> this error
>
> *Error 1 error LNK2001: unresolved external symbol "public: static
> class qpid::messaging::Duration const qpid::messaging::Duration::SECOND"
> (?SECOND@Duration@messaging@qpid@@2V123@B)
> D:\qpid-0.18\TestProject\Qpid_Transmitter\HelloWorld\main.obj HelloWorld
>
> Any suggestions on what I might be missing?
> *
What is the commandline you're using to build the app? Are you linking
in the qpidmessaging and qpidtypes libraires?
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/