Author |
Message
|
nageshr99 |
Posted: Tue Jun 27, 2017 1:51 am Post subject: undefined reference to "ImqMgr::ImqMgr()" - compil |
|
|
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Tue Jun 27, 2017 4:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nageshr99 |
Posted: Tue Jun 27, 2017 8:46 pm Post subject: |
|
|
Novice
Joined: 30 May 2017 Posts: 24
|
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Wed Jun 28, 2017 4:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
nageshr99 wrote: |
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nageshr99 |
Posted: Wed Jun 28, 2017 10:02 pm Post subject: |
|
|
Novice
Joined: 30 May 2017 Posts: 24
|
mqjeff wrote: |
nageshr99 wrote: |
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nageshr99 |
Posted: Fri Jun 30, 2017 3:53 am Post subject: |
|
|
Novice
Joined: 30 May 2017 Posts: 24
|
mqjeff wrote: |
nageshr99 wrote: |
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Fri Jun 30, 2017 3:56 am Post subject: |
|
|
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nageshr99 |
Posted: Fri Jun 30, 2017 7:30 am Post subject: |
|
|
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Fri Jun 30, 2017 8:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
fjb_saper |
Posted: Fri Jun 30, 2017 10:30 am Post subject: |
|
|
![](images/avatars/gallery/misc/2.gif) Grand High Poobah
Joined: 18 Nov 2003 Posts: 20700 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... ![](images/smiles/innocent.gif) _________________ MQ & Broker admin |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nageshr99 |
Posted: Sun Jul 02, 2017 7:40 pm Post subject: |
|
|
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... ![](images/smiles/innocent.gif) |
ok,.thanks for the info. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|