LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2012, 06:28 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
gSOAP g++ building error


I have gsoap installed, I am trying to to build one of the exmaples:

I do the following which builds a pure c version and this works fine:

Code:
g++  -c soapC.cpp
But when I try to build the c++ version like so:
Code:
g++ soapC.cpp
soapC.cpp:(.text+0x7645): undefined reference to `soap_element_begin_in'
soapC.cpp:(.text+0x7670): undefined reference to `soap_malloc'
soapC.cpp:(.text+0x76c0): undefined reference to `soap_revert'
soapC.cpp:(.text+0x76ce): undefined reference to `soap_malloc'
soapC.cpp:(.text+0x7752): undefined reference to `soap_id_lookup'
soapC.cpp:(.text+0x7773): undefined reference to `soap_element_end_in'
/tmp/ccMtcp0m.o: In function `soap_in_SOAP_ENV__Detail(soap*, char const*, SOAP_ENV__Detail*, char const*)':
soapC.cpp:(.text+0x77e5): undefined reference to `soap_element_begin_in'
soapC.cpp:(.text+0x783e): undefined reference to `soap_id_enter'
soapC.cpp:(.text+0x7926): undefined reference to `soap_inliteral'
soapC.cpp:(.text+0x799d): undefined reference to `soap_element_end_in'
soapC.cpp:(.text+0x79fd): undefined reference to `soap_id_forward'
How do I solve this???
 
Old 09-04-2012, 06:56 AM   #2
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
I have tried the following:
Quote:
g++ soapC.cpp -I /home/gsoap-2.8/gsoap/ -l libgsoap++.a
home/gsoap-2.8/gsoap includes header files and libgsoap++.s is a link as follows:
Quote:
libgsoap++.a -> /usr/local/lib/libgsoap++.a
But I now get the error:
Quote:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -llibgsoap++.a
collect2: ld returned 1 exit status
Any ideas??
 
Old 09-04-2012, 07:03 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
try: -l gsoap++ (instead of -l libgsoap++.a)
 
Old 09-04-2012, 07:09 AM   #4
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
Thanks for your reply:

Quote:
g++ soapC.cpp -I /home/gsoap-2.8/gsoap/ -l gsoap++
/usr/local/lib/libgsoap++.a: file not recognized: File truncated
collect2: ld returned 1 exit status

Any further ides??

Thanks
 
Old 09-04-2012, 09:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The file INSTALL.txt :

To configure and build the examples, use the --enable-samples option.
cd soap-2.8/ && ./configure --enable-samples
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GSoap WS Security Plugin Compilation / Linking help rross Programming 0 08-26-2010 11:41 AM
Error when building Diomedes Linux - Software 5 10-04-2006 01:18 AM
gsoap server on linux n .NET client nimish_bhu Linux - General 0 05-21-2006 05:18 AM
gSOAP problems with nested functions Mq2004 Programming 0 03-27-2005 05:26 AM
QT and gsoap bevenl Programming 0 09-29-2004 05:03 AM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration