I understand what I need to do, but I'm having a bit of difficulty
grasping how to do it.
So far I really just put what it told me so I have my.cpp calling
"std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I
really just don't know where to go from here.
> I understand what I need to do, but I'm having a bit of difficulty
> grasping how to do it.
> So far I really just put what it told me so I have my.cpp calling
> "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I
> really just don't know where to go from here.
On Sun, Mar 20, 2011 at 3:54 PM, Aiden <daniel.e.hog...@gmail.com> wrote: > Sorry if this is frowned upon, but I'm bumping this to try and get > help.
> On Mar 7, 11:00 am, Aiden <daniel.e.hog...@gmail.com> wrote: > > I understand what I need to do, but I'm having a bit of difficulty > > grasping how to do it. > > So far I really just put what it told me so I have my.cpp calling > > "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I > > really just don't know where to go from here.
> > Anyone have tips on where to go/what to do?
> -- > You received this message because you are subscribed to the Google Groups > "PPP-public" group. > To post to this group, send email to ppp-public@googlegroups.com. > To unsubscribe from this group, send email to > ppp-public+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/ppp-public?hl=en.
On Sun, Mar 20, 2011 at 7:00 PM, Jay x <jaydo...@gmail.com> wrote: > Are you getting an error message?
> On Sun, Mar 20, 2011 at 3:54 PM, Aiden <daniel.e.hog...@gmail.com> wrote:
>> Sorry if this is frowned upon, but I'm bumping this to try and get >> help.
>> On Mar 7, 11:00 am, Aiden <daniel.e.hog...@gmail.com> wrote: >> > I understand what I need to do, but I'm having a bit of difficulty >> > grasping how to do it. >> > So far I really just put what it told me so I have my.cpp calling >> > "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I >> > really just don't know where to go from here.
>> > Anyone have tips on where to go/what to do?
>> -- >> You received this message because you are subscribed to the Google Groups >> "PPP-public" group. >> To post to this group, send email to ppp-public@googlegroups.com. >> To unsubscribe from this group, send email to >> ppp-public+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/ppp-public?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "PPP-public" group. > To post to this group, send email to ppp-public@googlegroups.com. > To unsubscribe from this group, send email to > ppp-public+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/ppp-public?hl=en.
my.h file contains two function prototypes and an extern decleration to bring foo into scope. //------------------------------------ my.h ------------------------------------------ extern int foo; void print_foo(); void print(int); //------------------------------------ my.h ------------------------------------------
my.cpp contains the implementation of the functions print_foo() and print(int). //------------------------------------ my.cpp ------------------------------------------ #include "std_lib_facilities.h" #include "my.h"
You also need to declare foo (int foo;) somewhere, I chose to declare it on the last line of std_lib_facilities.h and then removed it after I verified it compiles and runs.
If you're on linux you can use this command to compile and run: g++ my.cpp use.cpp -o drill_1 ; ./drill_1
On Mon, Mar 21, 2011 at 1:32 AM, Daniel Hogue <daniel.e.hog...@gmail.com>wrote:
> No I just don't have anything to do yet. I don't know where to start > really.
> On Sun, Mar 20, 2011 at 7:00 PM, Jay x <jaydo...@gmail.com> wrote:
>> Are you getting an error message?
>> On Sun, Mar 20, 2011 at 3:54 PM, Aiden <daniel.e.hog...@gmail.com> wrote:
>>> Sorry if this is frowned upon, but I'm bumping this to try and get >>> help.
>>> On Mar 7, 11:00 am, Aiden <daniel.e.hog...@gmail.com> wrote: >>> > I understand what I need to do, but I'm having a bit of difficulty >>> > grasping how to do it. >>> > So far I really just put what it told me so I have my.cpp calling >>> > "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I >>> > really just don't know where to go from here.
>>> > Anyone have tips on where to go/what to do?
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "PPP-public" group. >>> To post to this group, send email to ppp-public@googlegroups.com. >>> To unsubscribe from this group, send email to >>> ppp-public+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/ppp-public?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "PPP-public" group. >> To post to this group, send email to ppp-public@googlegroups.com. >> To unsubscribe from this group, send email to >> ppp-public+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/ppp-public?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "PPP-public" group. > To post to this group, send email to ppp-public@googlegroups.com. > To unsubscribe from this group, send email to > ppp-public+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/ppp-public?hl=en.
> You also need to declare foo (int foo;) somewhere, I chose to declare it on
> the last line of std_lib_facilities.h and then removed it after I verified
> it compiles and runs.
> If you're on linux you can use this command to compile and run: g++ my.cpp
> use.cpp -o drill_1 ; ./drill_1
> On Mon, Mar 21, 2011 at 1:32 AM, Daniel Hogue <daniel.e.hog...@gmail.com>wrote:
> > No I just don't have anything to do yet. I don't know where to start
> > really.
> > On Sun, Mar 20, 2011 at 7:00 PM, Jay x <jaydo...@gmail.com> wrote:
> >> Are you getting an error message?
> >> On Sun, Mar 20, 2011 at 3:54 PM, Aiden <daniel.e.hog...@gmail.com> wrote:
> >>> Sorry if this is frowned upon, but I'm bumping this to try and get
> >>> help.
> >>> On Mar 7, 11:00 am, Aiden <daniel.e.hog...@gmail.com> wrote:
> >>> > I understand what I need to do, but I'm having a bit of difficulty
> >>> > grasping how to do it.
> >>> > So far I really just put what it told me so I have my.cpp calling
> >>> > "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I
> >>> > really just don't know where to go from here.
> >>> > Anyone have tips on where to go/what to do?
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "PPP-public" group.
> >>> To post to this group, send email to ppp-public@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> ppp-public+unsubscribe@googlegroups.com.
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/ppp-public?hl=en.
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "PPP-public" group.
> >> To post to this group, send email to ppp-public@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> ppp-public+unsubscribe@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/ppp-public?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "PPP-public" group.
> > To post to this group, send email to ppp-public@googlegroups.com.
> > To unsubscribe from this group, send email to
> > ppp-public+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/ppp-public?hl=en.- Hide quoted text -
> > use.cpp will have the main method
> > //------------------------------------ use.cpp
> > -----------------------------------------
> > #include "my.h"
> > You also need to declare foo (int foo;) somewhere, I chose to declare it on
> > the last line of std_lib_facilities.h and then removed it after I verified
> > it compiles and runs.
> > If you're on linux you can use this command to compile and run: g++ my.cpp
> > use.cpp -o drill_1 ; ./drill_1
> > On Mon, Mar 21, 2011 at 1:32 AM, Daniel Hogue <daniel.e.hog...@gmail.com>wrote:
> > > No I just don't have anything to do yet. I don't know where to start
> > > really.
> > > On Sun, Mar 20, 2011 at 7:00 PM, Jay x <jaydo...@gmail.com> wrote:
> > >> Are you getting an error message?
> > >> On Sun, Mar 20, 2011 at 3:54 PM, Aiden <daniel.e.hog...@gmail.com> wrote:
> > >>> Sorry if this is frowned upon, but I'm bumping this to try and get
> > >>> help.
> > >>> On Mar 7, 11:00 am, Aiden <daniel.e.hog...@gmail.com> wrote:
> > >>> > I understand what I need to do, but I'm having a bit of difficulty
> > >>> > grasping how to do it.
> > >>> > So far I really just put what it told me so I have my.cpp calling
> > >>> > "std_lib_facilities.h" and "my.h" and use.cpp calling "my.h", but I
> > >>> > really just don't know where to go from here.
> > >>> > Anyone have tips on where to go/what to do?
> > >>> --
> > >>> You received this message because you are subscribed to the Google Groups
> > >>> "PPP-public" group.
> > >>> To post to this group, send email to ppp-public@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> ppp-public+unsubscribe@googlegroups.com.
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/ppp-public?hl=en.
> > >> --
> > >> You received this message because you are subscribed to the Google Groups
> > >> "PPP-public" group.
> > >> To post to this group, send email to ppp-public@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> ppp-public+unsubscribe@googlegroups.com.
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/ppp-public?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "PPP-public" group.
> > > To post to this group, send email to ppp-public@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > ppp-public+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/ppp-public?hl=en.-Hide quoted text -