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 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 пользователь 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-psut 
> > il$
> > nodeunit test/networkstat_test.js
>
> > module.js:485
> >   process.dlopen(filename, module.exports);
> >           ^
> > Error:
> > /home/parallels/coding/checkouts/node-psutil/build/Release/psutil_lib_osx.n 
> > ode:
> > undefined symbol: _ZTV6Worker
> >     at Object.Module._extensions..node (module.js:485:11)
> >     at Module.load (module.js:356:32)
> >     at Function.Module._load (module.js:312:12)
> >     at Module.require (module.js:362:17)
> >     at require (module.js:378:17)
> >     at Object.<anonymous>
> > (/home/parallels/coding/checkouts/node-psutil/lib/psutil.js:1:79)
> >     at Module._compile (module.js:449:26)
> >     at Object.Module._extensions..js (module.js:467:10)
> >     at Module.load (module.js:356:32)
> >     at Function.Module._load (module.js:312:12)
>
> > Meaning the g++ linker is doing something differently. Also if I do nm on
> > the .node library that reference shows up as undefined.
>
> > On Friday, September 7, 2012 9:37:09 AM UTC+2, Oleg Efimov (Sannis) wrote:
>
> >> 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 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
> >>>> 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:
>
> >>>> // using namespace v8;

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to