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

  • SEARCH
  • Home
  • 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 6812039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:24:04+00:00 2026-05-26T20:24:04+00:00

If I create a c file and add this to the top. #import <GLKit/GLKit.h>

  • 0

If I create a c file and add this to the top.

#import <GLKit/GLKit.h>

I get a bunch of strange errors. This is the case if I import any objective C file. I have seen nothing about this in other questions/answers. Everyone seems to suggest that C and Objective C work seamlessly together!

gl.h
Unknown type name 'GLenum'; did you mean 'enum'?

GLKNamedEffect.h
Expected identifier or '('
  • 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-26T20:24:05+00:00Added an answer on May 26, 2026 at 8:24 pm

    If you rename your c file from something.c to something.m, you should be able to use:

    #import <GLKit/GLKit.h>
    

    within your file. Now, if you do that, the resulting file will be an Objective-C file and will need an Objective-C compiler to be compiled, hence the need to specify the .m extension.

    In other words, Objective-C is a language built on top of C. So you “mix” their syntaxes, so to speak but only the Objective-C compiler will be able to compile the mix. The C compiler will know nothing about ObjC.

    By changing the extension of your file, you are in a way choosing the compiler, and you can have a “plain C” file which imports an Objective-C header and calls into some Objective-C library.

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

Sidebar

Related Questions

I am attempting to add a username to file path so I can create
I want to create registry key through java program to add the jar file
If I create a file in ubuntu like this: echo asd > file.txt and
I have been following this tutorial, http://ruby.railstutorial.org/chapters/modeling-users?version=3.2#top , which I find great, but it
I have a program that stores it's information in an XML file. This file
I'm trying to do the following(in this order): Create a Rich Text Format file
I have a very simple CRUD API: from bottle import get, post, put, delete,
How can I create xml file with this format using c#? <?xml version=1.0 encoding=utf-8
I want to add swf file created by pdf2swf in vaadin window, So I
I need to create file sharing and chatting system like Microsoft Groove under .NET

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.