Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6690055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:35:31+00:00 2026-05-26T05:35:31+00:00

I am developing iPhone application which is using the 3 projects. One project is

  • 0

I am developing iPhone application which is using the 3 projects. One project is developed with the combination of c and c++ code and one is on Objective C and one is to link both (Objective-C and C and C++ project) the project.

Now when I am compiling my C and C++ project in GCC compiler it compiles perfectly but when I am compiling the same project with LLVM-GCC compiler it’s throwing error of ‘Initilizer element is not a constant’.

#define MY_WSD const

struct FuncDef {
  i8 nArg;             
  u8 iPrefEnc;         
  u8 needCollSeq;      
  u8 flags;            
  void *pUserData;     
  FuncDef *pNext;      
  char *zName;
  FuncDef *pHash;
};

typedef struct FuncDef FuncDef;

#define FUNCTION(zName, nArg, iArg, bNC, xFunc) \
  {nArg, SQLITE_UTF8, bNC, 0, SQLITE_INT_TO_PTR(iArg), 0, xFunc, 0, 0, #zName}

Here is the code responsible for error:

void myDateTimeFunctions(void){
    static MY_WSD FuncDef aDateTimeFuncs[] = {
    FUNCTION(julianday,        -1, 0, 0, juliandayFunc ), //when I compile the code with LLVM GCC it's giving me error 
                                                          //at this line and the later line and working fine with GCC 
                                                          //alone compiler. But the problem is XCode 4.2 does not come 
                                                          //with GCC alone compiler, so I am unable to run the applciation.
    FUNCTION(date,             -1, 0, 0, dateFunc      ),
  };

Please let me know if I am missing some valuable info for the bug to be fixed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:35:32+00:00Added an answer on May 26, 2026 at 5:35 am

    Hey thanks for your all supports and answer I got the answer of the question. It was the problem with the macro SQLITE_INT_TO_PTR defined in sqlite.c and it was the problem rreported long back with the LLVM_GCC compiler. Actually it is needed to redefine the macro and it will solve the problem.

    Here is the reference for the same: http://tribelet.blogspot.com/2008/09/blog-post_08.html
    language of the post is Japanese but it helped me to get out of the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iPhone application which plays the video using MPMoviePlayerController . When
I am developing an iPhone application in which I play videos using MPMoviePlayerController .
I am new to iphone development. I am developing one iphone application in which
I am developing an iPhone application using Objective-C. I want to access a data
I am developing an iPhone application in which I am fetching data from a
I am developing an iPhone application in which I am loading lots of data
I am developing an iPhone application in which I want to show nearest restaurants
I am developing an iPhone application in which i need to connect with twitter.
I developing an application in which i calling web services on iphone. I want
I am developing iPhone application and In that application I've one TableViewController , and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.