Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-30-2005
CAS CAS is offline
Registered User
 
 
Join Date: Sep 2005
Posts: 3
Compiling demos on Mac OS X 10.4.2

I've just started experimenting with Ice for possible use in a robotics project. I successfully compiled and ran the demos on Linux but am having trouble linking under Mac OS X 10.4.2. When I run make in the demo directory, I get the output below. I've set up the environment variables correctly, as far as I can tell, so I don't know why the linker is complaining.

% make
making all in IceUtil
making all in workqueue
rm -f workqueue
c++ -Wl,-executable_path,/Users/claude/Applications/Ice-2.1.2/bin -g -ftemplate-depth-128 -Wall -D_REENTRANT -L/Users/claude/Applications/Ice-2.1.2/lib -o workqueue WorkQueue.o -lIceUtil -lpthread
/usr/bin/ld: Undefined symbols:
typeinfo for IceUtil::NullHandleException
typeinfo for IceUtil::ThreadSyscallException
typeinfo for IceUtil::Thread
typeinfo for IceUtil::Exception
collect2: ld returned 1 exit status
make[2]: *** [workqueue] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
__________________
Claude Sammut
School of Computer Science and Engineering
University of New South Wales
Sydney, Australia
Reply With Quote
  #2 (permalink)  
Old 09-30-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Welcome to the forums! Which compiler do you use? The Mac OS X binary package was compiled with GCC 3.3 so you should use it to compile the demos (you can select which GCC version you want to use on Mac OS X with the gcc_select utility).

We don't support GCC 4.0 which has a bug that prevents Ice to compile. GCC 4.0.1 fixes this problem but it's not publicly available yet on Mac OS X.

Let us know if this doesn't help!

Benoit.
Reply With Quote
  #3 (permalink)  
Old 09-30-2005
CAS CAS is offline
Registered User
 
 
Join Date: Sep 2005
Posts: 3
Gcc 3.3

Thanks for the advice. I used gcc_select to switch to version 3.3, as you suggested, but I still get errors:

Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)

% make
making all in IceUtil
making all in workqueue
rm -f workqueue
c++ -Wl,-executable_path,/Users/claude/Applications/Ice-2.1.2/bin -g -ftemplate-depth-128 -Wall -D_REENTRANT -L/Users/claude/Applications/Ice-2.1.2/lib -o workqueue WorkQueue.o -lIceUtil -lpthread
ld: Undefined symbols:
__ZNSt15_List_node_base4hookEPS_
__ZNSt15_List_node_base6unhookEv
__ZTIN7IceUtil19NullHandleExceptionE
__ZTIN7IceUtil22ThreadSyscallExceptionE
__ZTIN7IceUtil6ThreadE
__ZTIN7IceUtil9ExceptionE
make[2]: *** [workqueue] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
__________________
Claude Sammut
School of Computer Science and Engineering
University of New South Wales
Sydney, Australia
Reply With Quote
  #4 (permalink)  
Old 09-30-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Did you do a "make clean" before to run "make" again after selecting the new compiler?

Benoit.
Reply With Quote
  #5 (permalink)  
Old 09-30-2005
CAS CAS is offline
Registered User
 
 
Join Date: Sep 2005
Posts: 3
make clean

"make clean" worked. Sorry, that was a silly mistake. All the demos are working now. Thanks for the very quick responses.

Claude
__________________
Claude Sammut
School of Computer Science and Engineering
University of New South Wales
Sydney, Australia
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
No demos in RPM distribution of 3.1.1 mefoster Comments 1 10-16-2006 12:30 PM
New SSL certificates for Ice 3.0 demos & tests mes Patches 0 12-31-2005 12:43 PM
Demos on ICE shantanu_k06 Comments 4 05-04-2004 02:06 PM
IcePack tutorials/ demos stephan Help Center 5 10-13-2003 09:36 PM
problem to build demos with VC 6.0 jxie Help Center 5 07-21-2003 12:43 AM


All times are GMT -4. The time now is 10:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.