• 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: Miss #include <vector>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Miss #include <vector>


  • Subject: Re: Miss #include <vector>
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 22 Mar 2006 07:15:57 -0700


On Mar 22, 2006, at 3:03 AM, Lorenzo wrote:

Now I get a different error

    /usr/bin/ld: Undefined symbols:
    GetKTParameter(float*)

This (my) routine is in a file FileX.m and it has always worked when the
extension of FileA is ".m" and not ".mm". What is going on?

You need to make the compiler treat that function as a C function instead of a C++ function. In the header file, try this:


#if defined(__cplusplus)
extern "C" {
#endif
(...prototypes go here...)
#if defined(__cplusplus)
}
#endif

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Miss #include <vector>
      • From: Lorenzo <email@hidden>
  • Prev by Date: awakeFromNib vs appdidfinishlaunching
  • Next by Date: Re: Searching for a socket spy app for mac
  • Previous by thread: Re: Miss #include <vector>
  • Next by thread: Re: Miss #include <vector>
  • Index(es):
    • Date
    • Thread