Results 1 to 5 of 5

Thread: latest svn update errors in iOS

  1. #1
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default latest svn update errors in iOS

    Hi.

    Latest svn update introduces errors in function GetMacAddress() in iOSUtils.mm
    Exactly the errors are:
    if ((mgmtInfoBase[5] = if_nametoindex("en0")) == 0) --> Use of undeclared if_nametoindex
    socketStruct = (struct sockaddr_dl *) (interfaceMsgStruct + 1); --> Arithmetic on a pointer to an incomplete type
    memcpy(&macAddress, socketStruct->sdl_data + socketStruct->sdl_nlen, 6); --> Member access into incomplete type

    Only if you does not noticed it yet.

    Regards.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    4,543

    Default

    Hmm, strange, I am not getting those errors. Can you make sure you have these includes near the top of iOSUtils.mm?

    Code:
    #include <netinet/in.h>
    #include <net/if.h>
    #include <net/if_dl.h>
    I am using Xcode 4.2, what are you using?
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default

    I am using Xcode 4.3.2

    The top of my iOSUtils.mm
    Code:
    #include "iOSUtils.h"
    #import <UIKit/UIKit.h>
    #import <cstdarg>
    #include <string>
    #include <sys/time.h>
    #include <sys/sysctl.h>
    #include "BaseApp.h"
    #include <SystemConfiguration/SystemConfiguration.h>
    #include "Network/NetUtils.h"
    #import <MobileCoreServices/MobileCoreServices.h> 
    #import <MyAppDelegate.h>
    #import <EAGLView.h>
    
    using namespace std;
    
    void LogMsg(const char *lpFormat, ...)
    ...
    I just copy those includes to the iOSUtils.mm file and compiled fine.

    Thanks

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    4,543

    Default

    Hmm, those lines are definitely in the latest svn version.. not sure why it isn't getting picked up by your svn update.

    You can see the svn version here.
    Seth A. Robinson
    Robinson Technologies

  5. #5
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default

    Hi.

    Sorry for late reply.
    I have just made a svn update and get rev. 876.
    I am using MacOS X 10.7.3 Lion with svn version 1.6.17 that is preinstaled with the system.
    I don't understand why doesn't get the iOSUtils.mm correctly.
    Anyway, it's working right now, so don't worry

    Regards.

Similar Threads

  1. ClanGUI in latest 2.2 - new dependency
    By sphair in forum ClanLib: Developer Chat
    Replies: 1
    Last Post: 05-19-2010, 07:25 AM
  2. Latest ClanLib finally a *.deb file!
    By NinjaNumberNine in forum ClanLib: General Discussion
    Replies: 0
    Last Post: 12-25-2009, 04:02 AM
  3. Collision bug in latest build
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 01-28-2007, 01:29 AM
  4. Latest Beta Bug/Issue
    By SLATE in forum Funeral Quest
    Replies: 5
    Last Post: 09-03-2004, 06:09 AM
  5. were can i download the latest version
    By woody in forum Dink Smallwood HD
    Replies: 1
    Last Post: 06-29-2003, 04:39 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •