• 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: #include, loading, and c++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #include, loading, and c++


  • Subject: Re: #include, loading, and c++
  • From: "Justin C. Walker" <email@hidden>
  • Date: Fri, 31 Mar 2006 08:02:03 -0800


On Mar 31, 2006, at 07:38 , email@hidden wrote:

Hi,
   According to the xcode help

2.2 Include Operation

The #include directive works by directing the C preprocessor to scan the specified file as input before continuing with the rest of the current file. The output from the preprocessor contains the output already generated, followed by the output resulting from the included file, followed by the output that comes from the text after the #include directive. For example, if you have a header file header.h as follows,
[snip]
but if I remove the random function and place it in a separate file as so, it does not
[snip]
Will someone explain this to me

It helps us help you if you actually tell us what is wrong: "it broke" is not much to go on, and we can't hope to probe tea leaves to figure out what broke. For starters, what did you do, and what does "it does not" mean? To help you on your way, if I take your second two .cc files and compile them, from the command line, with "g++ -c main.cc", it compiles with no complaints.


Regards,

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------


_______________________________________________ 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: 
 >#include, loading, and c++ (From: <email@hidden>)

  • Prev by Date: #include, loading, and c++
  • Next by Date: Re: #include, loading, and c++
  • Previous by thread: #include, loading, and c++
  • Next by thread: Re: #include, loading, and c++
  • Index(es):
    • Date
    • Thread