• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bringing windows c++ code to Macintosh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bringing windows c++ code to Macintosh


  • Subject: Re: bringing windows c++ code to Macintosh
  • From: Philip Aker <email@hidden>
  • Date: Wed, 10 Sep 2008 02:17:08 -0700

On Sep 10, 2008, at 1:21 AM, Sherm Pendley wrote:

On Wed, Sep 10, 2008 at 3:54 AM, M Pulis <email@hidden> wrote:
My .m file is including a file called "util.cpp" which includes the .hpp header file.


Prior to that, other .c files are included... so how does one handle cpp, hpp and .m???

Just to make sure I understand you... You have a .m file (which is Objective-C) that is using #include to include multiple .c, .cpp, and .hpp files? If so, that's the root of your problem. Source files should *never* be #included - they're compiled separately into object (.o) files, then the object files are linked to produce the final product.

Maybe he should try .mm files?


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >bringing windows c++ code to Macintosh (From: M Pulis <email@hidden>)
 >Re: bringing windows c++ code to Macintosh (From: "Michael Williamson" <email@hidden>)
 >Re: bringing windows c++ code to Macintosh (From: M Pulis <email@hidden>)
 >Re: bringing windows c++ code to Macintosh (From: "Sherm Pendley" <email@hidden>)
 >Re: bringing windows c++ code to Macintosh (From: "Sherm Pendley" <email@hidden>)

  • Prev by Date: Re: bringing windows c++ code to Macintosh
  • Next by Date: adding object to a Xcode project
  • Previous by thread: Re: bringing windows c++ code to Macintosh
  • Next by thread: Re: bringing windows c++ code to Macintosh
  • Index(es):
    • Date
    • Thread