Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

node v0.5.5 + mingw 'PROCESS_MEMORY_COUNTERS' was not declared in this scope #1662

Closed
jetlan opened this issue Sep 6, 2011 · 1 comment
Closed

Comments

@jetlan
Copy link

jetlan commented Sep 6, 2011

Symptom

Waf: Entering directory `r:\node55\out'
[29/30] cxx: src\platform_win32.cc -> out\Release\src\platform_win32_5.o

..\src\platform_win32.cc: In static member function 'static int node::Platform::GetMemory(size_t_, size_t_)':

..\src\platform_win32.cc:203:3: error: 'PROCESS_MEMORY_COUNTERS' was not declared in this scope

..\src\platform_win32.cc:203:27: error: expected ';' before 'pmc'

..\src\platform_win32.cc:205:49: error: 'pmc' was not declared in this scope

..\src\platform_win32.cc:205:65: error: 'GetProcessMemoryInfo' was not declared in this scope

..\src\platform_win32.cc:210:10: error: 'pmc' was not declared in this scope

Waf: Leaving directory `r:\node55\out'
Build failed: -> task failed (err #1):
{task: cxx platform_win32.cc -> platform_win32_5.o}

Patch
in .\src\platform_win32.h
add line #include <psapi.h>

@bnoordhuis
Copy link
Member

This is probably an issue with your build environment. Does it still happen with v0.6.3?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants