You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ryoung038 <ry...@gmail.com> on 2011/02/02 02:34:37 UTC

Building App Using ActiveMQCpp 3.2.4 on Windows 7

I am having problems very similar to
http://activemq.2283324.n4.nabble.com/Building-ActiveMQCpp-3-2-4-on-Windows-7-x64-td3229732.html#a3229940

However, I am not creating a 64 bit app. I created a new project that
references activemq-cppd.lib and the apr libs. If I put "#include
<activemq/library/ActiveMQCPP.h>" I get no compilation errors but when I try
and include anything in decaf (e.g. <decaf/lang/Thread.h>) I get a ton of
errors. From including decaf/lang/Thread .h I get the following:

MessagingTest.obj : error LNK2028: unresolved token (0A00000E) "protected:
virtual void __clrcall decaf::lang::Exception::setStackTrace(class
std::vector<struct std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>,class
std::allocator<struct std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int> > > const &)"
(?setStackTrace@Exception@lang@decaf@@$$FMAMXABV?$vector@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@V?$allocator@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A00000F) "public:
virtual void __clrcall decaf::lang::Exception::setMessage(char const *,...)"
(?setMessage@Exception@lang@decaf@@$$FUAMXPBDZZ) referenced in function
"void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000010) "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __clrcall
decaf::lang::Exception::getStackTraceString(void)const "
(?getStackTraceString@Exception@lang@decaf@@$$FUBM?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000011) "public:
virtual void __clrcall decaf::lang::Exception::printStackTrace(void)const "
(?printStackTrace@Exception@lang@decaf@@$$FUBMXXZ) referenced in function
"void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000012) "public:
virtual void __clrcall decaf::lang::Exception::printStackTrace(class
std::basic_ostream<char,struct std::char_traits<char> > &)const "
(?printStackTrace@Exception@lang@decaf@@$$FUBMXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000013) "public:
virtual class std::vector<struct std::pair<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int>,class std::allocator<struct std::pair<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int> > > __clrcall
decaf::lang::Exception::getStackTrace(void)const "
(?getStackTrace@Exception@lang@decaf@@$$FUBM?AV?$vector@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@V?$allocator@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@XZ)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000014) "public:
virtual void __clrcall decaf::lang::Exception::initCause(class
std::exception const *)"
(?initCause@Exception@lang@decaf@@$$FUAMXPBVexception@std@@@Z) referenced in
function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A00001E) "public:
virtual void __clrcall decaf::lang::Exception::setMark(char const *,int)"
(?setMark@Exception@lang@decaf@@$$FUAMXPBDH@Z) referenced in function "void
__clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A00001F) "protected:
virtual void __clrcall decaf::lang::Exception::buildMessage(char const
*,class System::ArgIterator &)"
(?buildMessage@Exception@lang@decaf@@$$FMAMXPBDAAVArgIterator@System@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000020) "public:
class decaf::lang::Exception & __clrcall
decaf::lang::Exception::operator=(class decaf::lang::Exception const &)"
(??4Exception@lang@decaf@@$$FQAMAAV012@ABV012@@Z) referenced in function
"public: __clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000021) "public:
virtual __clrcall decaf::lang::Exception::~Exception(void)"
(??1Exception@lang@decaf@@$$FUAM@XZ) referenced in function "public:
__clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2028: unresolved token (0A000022) "public:
__clrcall decaf::lang::Exception::Exception(void)"
(??0Exception@lang@decaf@@$$FQAM@XZ) referenced in function "public:
__clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual __clrcall decaf::lang::Exception::~Exception(void)"
(??1Exception@lang@decaf@@$$FUAM@XZ) referenced in function "public:
__clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
class decaf::lang::Exception & __clrcall
decaf::lang::Exception::operator=(class decaf::lang::Exception const &)"
(??4Exception@lang@decaf@@$$FQAMAAV012@ABV012@@Z) referenced in function
"public: __clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
__clrcall decaf::lang::Exception::Exception(void)"
(??0Exception@lang@decaf@@$$FQAM@XZ) referenced in function "public:
__clrcall
decaf::lang::exceptions::IllegalThreadStateException::IllegalThreadStateException(class
decaf::lang::exceptions::IllegalThreadStateException const &)"
(??0IllegalThreadStateException@exceptions@lang@decaf@@$$FQAM@ABV0123@@Z)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "protected:
virtual void __clrcall decaf::lang::Exception::buildMessage(char const
*,class System::ArgIterator &)"
(?buildMessage@Exception@lang@decaf@@$$FMAMXPBDAAVArgIterator@System@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "protected:
virtual void __clrcall decaf::lang::Exception::setStackTrace(class
std::vector<struct std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int>,class
std::allocator<struct std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int> > > const &)"
(?setStackTrace@Exception@lang@decaf@@$$FMAMXABV?$vector@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@V?$allocator@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual void __clrcall decaf::lang::Exception::setMessage(char const *,...)"
(?setMessage@Exception@lang@decaf@@$$FUAMXPBDZZ) referenced in function
"void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __clrcall
decaf::lang::Exception::getStackTraceString(void)const "
(?getStackTraceString@Exception@lang@decaf@@$$FUBM?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual void __clrcall decaf::lang::Exception::printStackTrace(void)const "
(?printStackTrace@Exception@lang@decaf@@$$FUBMXXZ) referenced in function
"void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual void __clrcall decaf::lang::Exception::printStackTrace(class
std::basic_ostream<char,struct std::char_traits<char> > &)const "
(?printStackTrace@Exception@lang@decaf@@$$FUBMXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual class std::vector<struct std::pair<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int>,class std::allocator<struct std::pair<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,int> > > __clrcall
decaf::lang::Exception::getStackTrace(void)const "
(?getStackTrace@Exception@lang@decaf@@$$FUBM?AV?$vector@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@V?$allocator@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@XZ)
referenced in function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual void __clrcall decaf::lang::Exception::setMark(char const *,int)"
(?setMark@Exception@lang@decaf@@$$FUAMXPBDH@Z) referenced in function "void
__clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)
1>MessagingTest.obj : error LNK2019: unresolved external symbol "public:
virtual void __clrcall decaf::lang::Exception::initCause(class
std::exception const *)"
(?initCause@Exception@lang@decaf@@$$FUAMXPBVexception@std@@@Z) referenced in
function "void __clrcall `dynamic initializer for 'const
decaf::lang::exceptions::IllegalThreadStateException::`vftable'''(void)"
(???__E??_7IllegalThreadStateException@exceptions@lang@decaf@@6B@@@YMXXZ@?A0x53af6257@@$$FYMXXZ)

-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Building-App-Using-ActiveMQCpp-3-2-4-on-Windows-7-tp3253304p3253304.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Building App Using ActiveMQCpp 3.2.4 on Windows 7

Posted by ryoung038 <ry...@gmail.com>.
I figured it out. I was going to create this slick little gui app (windows
form app) and it looks like there was some conflicts from the managed c++.
At least that's my theory. I setup a new project that was just a simple
win32 console app and everything is working ok. After searching around it
looks like there is possibly a way to workaround this but since I don't
REALLY need a gui I didn't bother since it seemed to be a bit of trouble. 
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Building-App-Using-ActiveMQCpp-3-2-4-on-Windows-7-tp3253304p3255465.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Building App Using ActiveMQCpp 3.2.4 on Windows 7

Posted by Timothy Bish <ta...@fusesource.com>.
On Tue, 2011-02-01 at 17:34 -0800, ryoung038 wrote:
> I am having problems very similar to
> http://activemq.2283324.n4.nabble.com/Building-ActiveMQCpp-3-2-4-on-Windows-7-x64-td3229732.html#a3229940
> 
> However, I am not creating a 64 bit app. I created a new project that
> references activemq-cppd.lib and the apr libs. If I put "#include
> <activemq/library/ActiveMQCPP.h>" I get no compilation errors but when I try
> and include anything in decaf (e.g. <decaf/lang/Thread.h>) I get a ton of
> errors. From including decaf/lang/Thread .h I get the following:
> 

First thing to do is examine the provided example project files and
ensure you have you project settings correct.  Also ensure you are
linking against the correct lib and not a 32bit build.

Regards


-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/



Re: Building App Using ActiveMQCpp 3.2.4 on Windows 7

Posted by ryoung038 <ry...@gmail.com>.
Sorry about the lengthy error messages. I Should have just included the first
few :P
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Building-App-Using-ActiveMQCpp-3-2-4-on-Windows-7-tp3253304p3253306.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.