Rude::Config Compile error

I've been messing with this for a few hours now and its driving me nuts. I'm trying to use the RudeConfig library to implement a config file parser in my project. It sounded simpler and easier to learn than any others i looked at.

I've downloaded the header file and .lib file, set my compiler and linker search directories correctly, added the library into the linker options, and rebuilt everything.

But no matter what I try i get an undefined reference error whenever i try to use one of its functions. (ie call constructor)

I'm using Window 7 with code::blocks 10.05. I've downloaded the binaries (I dont know how to build library from source) for visual studio 6 though. Is this the problem? would they honestly make a library only work with a certain IDE?

Any Ideas on what I'm surely doing wrong?

PS
I dont have a ton of experience with 3rd party libraries. I've gotten wxwidgets and sfml to work no problem though.

Heres the page for rude config:
http://rudeserver.com/config/install.html
Last edited on
Finally figured it out.

- I downloaded all the source files (cpp and header files).
- Created a new project in codeblocks with the static library template
- Added all the source files and header files to the project and compiled
- This generated a static library file (librudeconfig.a)
- put the config.h file and the newly created library file into my lib folder in my REAL project
- told the REAL project where to look for the header file
- under linker settings i linked the library file
- compiled and it worked!


actually a lot easier than I was making it. Just gotta dive in and do it lol!
Hope this helps anybody curious about how to build there own library from source code.

EDIT: from what I understand, .lib files are used by visual C++ microsoft compiler mainly. thats why my compiler had no idea what to do with it. (I'm using codeblocks with gnu compiler)
Last edited on
Topic archived. No new replies allowed.