[nodejs] Re: psutil library for node

2012-09-08 Thread christkv
well finally fixed it had to do the separation of concerns. G++ truly is the Yoda of C++ compilers. On Sep 7, 12:36 pm, Oleg Efimov (Sannis) efimo...@gmail.com wrote: I think the best way will be to keep original psutils files layout. It is more common to use different files for different

[nodejs] Re: psutil library for node

2012-09-08 Thread Oleg Efimov (Sannis)
Nice! суббота, 8 сентября 2012 г., 13:53:54 UTC+4 пользователь christkv написал: well finally fixed it had to do the separation of concerns. G++ truly is the Yoda of C++ compilers. On Sep 7, 12:36 pm, Oleg Efimov (Sannis) efimo...@gmail.com wrote: I think the best way will be to keep

[nodejs] Re: psutil library for node

2012-09-07 Thread christkv
ok cool I'll go through all the stuff with a comb. wonder why g++ is so picky while clang++ is not. On Thursday, September 6, 2012 11:37:48 PM UTC+2, mscdex wrote: On Sep 6, 5:20 pm, Paddy Byers paddy.by...@gmail.com wrote: If you disambiguate all references to Handle as v8::Handle then it

[nodejs] Re: psutil library for node

2012-09-07 Thread Oleg Efimov (Sannis)
I do not know why clang is so lenient ;) but it look like a bad idea to place all code in header files and trying to link them together. I will try to build this on linux on the weekend. Also, why are you place static declaration into binding.gyp? *.node files are dynamic libraries. пятница, 7

[nodejs] Re: psutil library for node

2012-09-07 Thread Oleg Efimov (Sannis)
There are many resources in www, but this is a good one: http://lists.gnu.org/archive/html/openexr-devel/2003-10/msg00035.html Maybe clang linker is a bit entelligent, but previously I think that it use standard ld. пятница, 7 сентября 2012 г., 11:15:46 UTC+4 пользователь christkv написал: ok

[nodejs] Re: psutil library for node

2012-09-07 Thread christkv
Hi Oleg any help would be appreciated as none of the suggestions currently seems to work. It build correctly but if you run the a test using the lib you get. parallels@parallels-Parallels-Virtual-Platform:~/coding/checkouts/node-psutil$ nodeunit test/networkstat_test.js module.js:485

[nodejs] Re: psutil library for node

2012-09-07 Thread Oleg Efimov (Sannis)
I think the best way will be to keep original psutils files layout. It is more common to use different files for different platforms, that write hundred-lines #ifdefs. If there was a set of *.cc + *.h files, it should be linked well. пятница, 7 сентября 2012 г., 11:55:57 UTC+4 пользователь

[nodejs] Re: psutil library for node

2012-09-06 Thread mscdex
On Sep 6, 5:20 pm, Paddy Byers paddy.by...@gmail.com wrote: If you disambiguate all references to Handle as v8::Handle then it builds for me, on Debian and Darwin. I guess there is a conflict with a definition in one of the various things you're including. Line 39 probably does not help any: