Question on where to #include my library

This is a discussion on Question on where to #include my library within the C++ Programming forums, part of the General Programming Boards category; eh, why dont you just try doing --> #ifndef GRAPH_HPP #include <graph.hpp> #define GRAPH_HPP #endif <-- the odds of this ...

  1. #16
    Registered User
    Join Date
    Apr 2002
    Posts
    9

    Eh, I dont think this forum made any sense to me!

    eh, why dont you just try doing -->

    #ifndef GRAPH_HPP
    #include <graph.hpp>
    #define GRAPH_HPP
    #endif

    <-- the odds of this working are slim to none, but it worked for me 1ce, And I think I did it a little differently, oh well cant heart!


  2. #17
    Registered User WebSnozz's Avatar
    Join Date
    Oct 2001
    Posts
    102
    I believe that will work but you would have to suround the file with the if define in every file you included it in
    WebSnozz-
    Cats have no butt cheeks.
    If one farted, then it would make a flute noise.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Include some function form library
    By thepolo in forum C Programming
    Replies: 4
    Last Post: 05-24-2009, 05:11 PM
  2. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 09:08 PM
  3. Simple question, LINE_MAX
    By rkooij in forum C Programming
    Replies: 6
    Last Post: 03-14-2006, 07:03 AM
  4. Newbie Question: Can't use #include <string>
    By JohnnyCat in forum C++ Programming
    Replies: 7
    Last Post: 01-07-2005, 01:51 PM
  5. Question with Winamp Library
    By moonwalker in forum Tech Board
    Replies: 3
    Last Post: 08-07-2003, 08:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21