Thread: Noob question - Implementing INI Parsing class

  1. #1
    The Reel Thing
    Join Date
    Jun 2005
    Posts
    44

    Noob question - Implementing INI Parsing class

    Hello, I recently downloaded an INI parsing class, called iniFile.

    There's nothing wrong with the code, but I'm stumped on how to implement it. The source comes with a header file, and a source file containing all the functions and inners of the class.

    When I include the header file into my project, it won't let me compile, becase there are undefined references to all the functions.

    What do I have to do to this cpp file to make it work? Should I compile it into a library and link it to my program, or something else?

    Any help would be appreciated, or if I'm being too vague, gimme a heads up so I can see what else I can do.
    Bagpipes – putting the fun back in funeral.

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    You need to compile the source as well and either make it a library you can link with in all your other projects, or as a one-time type of thing you could just add that source file to your current project making it a multi-sourcefile project.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    The Reel Thing
    Join Date
    Jun 2005
    Posts
    44
    Thank you, I compiled it, and it worked fine. I'll keep this in mind for future projects, thanks a lot!
    Bagpipes – putting the fun back in funeral.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Noob question about a use a friend class
    By dorenthe in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 12:38 PM
  2. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM