ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » undefined reference to "ImqMgr::ImqMgr()" - compil

Post new topic  Reply to topic
 undefined reference to "ImqMgr::ImqMgr()" - compil « View previous topic :: View next topic » 
Author Message
nageshr99
PostPosted: Tue Jun 27, 2017 1:51 am    Post subject: undefined reference to "ImqMgr::ImqMgr()" - compil Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

Hi,

We are getting similar type of compilation errors - both on windows 7 and linux scientific version 7.2 while compiling sample C++ programs present in the IBM Websphere MQ SDk package which was installed aloing with MQ server,MQ client,MQ explorer etc.

Example file : imqwrld.cpp file .

The command we are using for compiling on LINUX is :

sudo g++ -I/opt/mqm/inc -L/opt/mqm/lib64 -L/opt/mqm/lib imqwrld.cpp -o imqwrld

we are getting so many undefined reference errors for the MQ C++ interface classes like IMQMgr,IMQStr,IMQChl,etc like as shown below:

"undefined reference to "ImqMgr::ImqMgr()"
undefined reference to "ImqStr::ImqStr(char const*)"
undefined reference to "ImqChl::Imchl()"



Pls let us the solution for this.We have installed MQ version 8.0 on the LINUX system.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 27, 2017 4:30 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030470_.htm
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
nageshr99
PostPosted: Tue Jun 27, 2017 8:46 pm    Post subject: Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

mqjeff wrote:
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030470_.htm


Thanks for the link for compilation on linux.It successfully compiled now on linux-Scientific version 7.2 when we used 64 bit- non-threaded option for compiling.

Can you please provide the similar link for compililng on windows using MDev++ IDE or any other like GCC,Falcon,Borland C++ etc.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 28, 2017 4:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

nageshr99 wrote:
mqjeff wrote:
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030470_.htm


Thanks for the link for compilation on linux.It successfully compiled now on linux-Scientific version 7.2 when we used 64 bit- non-threaded option for compiling.

Can you please provide the similar link for compililng on windows using MDev++ IDE or any other like GCC,Falcon,Borland C++ etc.

Thanks.


The link I provided is a child of a page that gives an index of how to compile on the various OSes.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
nageshr99
PostPosted: Wed Jun 28, 2017 10:02 pm    Post subject: Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

mqjeff wrote:
nageshr99 wrote:
mqjeff wrote:
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030470_.htm


Thanks for the link for compilation on linux.It successfully compiled now on linux-Scientific version 7.2 when we used 64 bit- non-threaded option for compiling.

Can you please provide the similar link for compililng on windows using MDev++ IDE or any other like GCC,Falcon,Borland C++ etc.

Thanks.


The link I provided is a child of a page that gives an index of how to compile on the various OSes.


ok fine.Thanks
Back to top
View user's profile Send private message
nageshr99
PostPosted: Fri Jun 30, 2017 3:53 am    Post subject: Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

mqjeff wrote:
nageshr99 wrote:
mqjeff wrote:
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030470_.htm


Thanks for the link for compilation on linux.It successfully compiled now on linux-Scientific version 7.2 when we used 64 bit- non-threaded option for compiling.

Can you please provide the similar link for compililng on windows using MDev++ IDE or any other like GCC,Falcon,Borland C++ etc.

Thanks.


The link I provided is a child of a page that gives an index of how to compile on the various OSes.


In that link it explains only by using Microsoft Visual Studio compiler on windows.

We dont have Microsoft Visual Studio compiler with us.We have only Falcon and M Dev compilers.Please provide us steps to compile using these compilers.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 30, 2017 3:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you look at the top of that page, you will see the text " IBM MQ
Developing applications
Developing object-oriented applications with IBM MQ
Using C++
Building IBM MQ C++ programs"

Each part of that text is a separate link to a separate page.

So you are asking about how to build IBM MQ C Programs, yes?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
nageshr99
PostPosted: Fri Jun 30, 2017 7:30 am    Post subject: Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

Yes..I am asking how to compile c++ sample programmes on windows 7 using Falcon/M Dev compilers.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 30, 2017 8:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

nageshr99 wrote:
Yes..I am asking how to compile c++ sample programmes on windows 7 using Falcon/M Dev compilers.


https://www.ibm.com/software/reports/compatibility/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1350550241693&osPlatform=Windows

It's not a supported compiler.

IF you want to use it, you can adapt the visual studio options to match the right ones in Falcon.

But I can't tell you how to do that, as I don't know Falcon.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 30, 2017 10:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

nageshr99 wrote:


In that link it explains only by using Microsoft Visual Studio compiler on windows.

We don't have Microsoft Visual Studio compiler with us.We have only Falcon and M Dev compilers.Please provide us steps to compile using these compilers.

Thanks.

I thought that the Visual Studio compiler was part of Visual Studio Express (free) and would allow you to compile with a supported compiler...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
nageshr99
PostPosted: Sun Jul 02, 2017 7:40 pm    Post subject: Reply with quote

Novice

Joined: 30 May 2017
Posts: 24

fjb_saper wrote:
nageshr99 wrote:


In that link it explains only by using Microsoft Visual Studio compiler on windows.

We don't have Microsoft Visual Studio compiler with us.We have only Falcon and M Dev compilers.Please provide us steps to compile using these compilers.

Thanks.

I thought that the Visual Studio compiler was part of Visual Studio Express (free) and would allow you to compile with a supported compiler...

ok,.thanks for the info.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » undefined reference to "ImqMgr::ImqMgr()" - compil
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.