Game Development Community

compile error (utimes not declared) with xcode on mac

by Hans-Georg Reimer · in Torque Game Engine · 06/18/2009 (9:34 am) · 2 replies

Hi everybody,

we want to compile the TGE 1.5.2 (clear install) on mac OS X 10.5. We just open the existing xcode project change some settings (see below) for the build. What we get is the compile error "utimes not declared" in the macCarbFileio.cc, line 57.

This only happens in RELEASE mode, the DEBUG build works fine.

Does anyone know this problem? is there a library missing?
Where should utimes normally come form?
Or do we just have the wrong settings?

We use XCode 3.0

Settings (for Debug and Release):

GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 4.0
MACOSX_DEPLOYMENT_TARGET_i386 = 10.5
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4
SDKROOT_i386 = ..MacOSX10.5.sdk
SDKROOT_pcc = ..MacOSX10.4u.sdk

About the author

Recent Threads


#1
06/18/2009 (10:26 am)

Just rename 'utimes' to 'utime' in the single call in dFileTouch and all should be fine.

The file includes the wrong headers for 'utimes' and maybe deprecation also kicks in in the release build. Anyways, killing the 's' should do the trick.
#2
06/19/2009 (9:05 am)
Thanks a lot. Now it works fine. Small and simple trick.