Looking for a X-Platform library for Systemcalls

Hi there.
Easy said:
I am looking for a library similar to wxWidgets but without the GUI-Stuff.
In fact I need especially the system-stuff like getting home-directories and other relevant pathes etc.
Boost does not contain this as far as I know. And to be honest, boost is very "huge" and I want to avoid to have it as an dependecy for my current project.
Thanks for your help.Google did not turn out something useful.
(http://docs.wxwidgets.org/2.8.9/wx_wxstandardpaths.html#wxstandardpaths is an example)
rya.
Last edited on
Boost does have it: Boost filesystem
http://www.boost.org/doc/libs/1_40_0/libs/filesystem/doc/index.htm
(It is one of the few Boost libraries that needs to be compiled, though.)

Boost does contain a lot of stuff, but it does not bloat your project to use it. I don't consider it out of hand to require it in a C++ project. It is as close to a cross-platform standard library as you are going to get without actually using the STL.

However, if you still only want to use *nix functions and libraries:
http://linux.die.net/man/

Good luck!
Hmm, I have looked intensivly at the docs, but I cannot find any way to get the Home-Directory from it or Font-Path etc... thats what I need :).
So unfortunately, it does not solve my initial problem.
Or I have overlooked it accidentily.
But thanks for your answer Duoas.
rya.
With Boost, just create a basic_path( "~" ).
With C library, just getenv( "HOME" ).
Enjoy!
That works on Linux but not on Windows. Just tried it... and you don't have %HOME% on Windows either...
rya.
Topic archived. No new replies allowed.