|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Compiling BlockIP2 on Solaris with gcc |
« View previous topic :: View next topic » |
Author |
Message
|
sproot |
Posted: Tue Jun 21, 2005 4:43 am Post subject: Compiling BlockIP2 on Solaris with gcc |
|
|
Newbie
Joined: 21 Jun 2005 Posts: 4
|
Apologies if this is a stupid question, but I've looked all over the web and can't find any info about it.
With 2.20beta (I couldn't find 2.1 anywhere) the compile script packaged with it gives:
cc -c BlockIP2.c
ld -L/usr/vac/lib -o BlockIP2 BlockIP2.o -bE:BlockIP2.exp -H512 -T512 -e MQStart -bM:SRC -lc -lmqm_r
Which I imagine is for AIX, certainly most of the linker options don't seem to be valid on Solaris.
I tried to convert it to a makefile for gcc:
BlockIP2: BlockIP2.c
gcc -L/usr/lib/ -o BlockIP2 BlockIP2.c -lc -lmqmr -lmqm
But it still doesn't want to work, I get an undefined symbol 'main'.
I guess this is because I'm not importing the .exp file with the entry points, so it's looking for main, when it should be looking for MQStart.
I'm not a developer though, I actually have no idea what I'm talking about.
If anyone can give me some pointers, I'd be grateful.
And I can't use the SUN cc compiler, it's not free (as in beer).
TIA
Steve |
|
Back to top |
|
 |
sproot |
Posted: Tue Jun 21, 2005 5:15 am Post subject: |
|
|
Newbie
Joined: 21 Jun 2005 Posts: 4
|
Doh!
Looked in the code - the gcc options are listed there!
RTFM  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|