Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Compile Error

Compile Error
Thread Tools
kronos[pka]
Fresh-Faced Recruit
Join Date: Feb 2007
Status: Offline
Reply With Quote
Apr 30, 2007, 05:57 PM
 
Code:
Making all in zthread /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I./../../include -I./../../include/zthread -DENABLE_RA -DENABLE_CLI -g -O2 -MT AtomicCount.lo -MD -MP -MF .deps/AtomicCount.Tpo -c -o AtomicCount.lo AtomicCount.cxx g++ -DHAVE_CONFIG_H -I. -I../../.. -I./../../include -I./../../include/zthread -DENABLE_RA -DENABLE_CLI -g -O2 -MT AtomicCount.lo -MD -MP -MF .deps/AtomicCount.Tpo -c AtomicCount.cxx -fno-common -DPIC -o .libs/AtomicCount.o /usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared /usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared /usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared /usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared /usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared /usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared /usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared /usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared /usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared /usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared make[4]: *** [AtomicCount.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
im trying to compile a Linux program, does anyone know if it is possible to fix this ?
     
smitty825
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status: Offline
Reply With Quote
Apr 30, 2007, 11:45 PM
 
Just a random guess...is there a file called "time.h" (case insensitive) anyplace in the code tree? The reason is that the (default) Mac filesystem (HFS+) is case-preserving, but not case-sensitive. (You can test that by going to the command line and typing %cat sOmETextFIlE.txt (with a funky case)
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 30, 2007, 11:50 PM
 
What is the app?
     
kronos[pka]  (op)
Fresh-Faced Recruit
Join Date: Feb 2007
Status: Offline
Reply With Quote
May 1, 2007, 08:14 AM
 
Originally Posted by besson3c View Post
What is the app?
svn co https://mangos.svn.sourceforge.net/svnroot/mangos/trunk ManGOS_SRC
its a MMORPG Emulator Framework (for games like WoW)


i found the error in dep/src/zthread/Makefile
AM_CPPFLAGS = -I$(srcdir)/../../include -I$(srcdir)/../../include/zthread
replaced with
AM_CPPFLAGS = -iquote$(srcdir)/../../include -iquote$(srcdir)/../../include/zthread
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:23 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,