search for: getprocessmemoryinfo

Displaying 20 results from an estimated 27 matches for "getprocessmemoryinfo".

2008 May 18
2
A problem with GetProcessMemoryInfo?
...wine(linux): { } [successed: 0]{ */ #include <windows.h> #include "psapi.h" #include <stdio.h> #include <stdlib.h> #pragma comment ( lib, "psapi.lib" ) void GetCurrentProcessMemory () { PROCESS_MEMORY_COUNTERS pmc; printf("{\n}"); bool ret=GetProcessMemoryInfo ( GetCurrentProcess() , &pmc, sizeof ( pmc ) ); if (ret) printf("\n[successed: %d]", (int)pmc.WorkingSetSize); else printf("\n<failed>"); printf("{\n}"); } void main() { GetCurrentProcessMemory(); }
2009 Mar 01
0
Re: A problem with GetProcessMemoryInfo?
I modified code to: #include <windows.h> #include "psapi.h" #include <stdio.h> #include <stdlib.h> #pragma comment ( lib, "psapi.lib" ) void GetCurrentProcessMemory () { PROCESS_MEMORY_COUNTERS pmc; printf("{\n}"); bool ret=GetProcessMemoryInfo ( GetCurrentProcess() , &pmc, sizeof ( pmc ) ); if (ret) printf("\n[successed: %d]", (int)pmc.WorkingSetSize); else printf("\n<failed>"); printf("{\n}"); } int main() { GetCurrentProcessMemory();...
2009 Oct 02
2
[LLVMdev] llvm build errors on windows/mingw32
...ust modify the makefile resident in lib/System > > > > But, a new error is appeared > > llvm[2]: Linking Debug unit test ADT > > d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > > undefined reference to `GetProcessMemoryInfo at 12' > > GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 > doesn't have this import lib. It is included in the MS Platform SDK, > but I'm not sure whether you can link that into mingw32 programs... msdn suggests kernel32, but that is already inc...
2008 Nov 17
1
Re: A problem with GetProcessMemoryInfo?
Doesn't compile: austin at austin-desktop:~$ i586-mingw32msvc-gcc foo.c foo.c: In function ?GetCurrentProcessMemory?: foo.c:14: error: ?bool? undeclared (first use in this function) foo.c:14: error: (Each undeclared identifier is reported only once foo.c:14: error: for each function it appears in.) foo.c:14: error: expected ?;? before ?ret? foo.c:17: error: ?ret? undeclared (first use in
2009 Oct 01
6
[LLVMdev] llvm build errors on windows/mingw32
...solution. Please, someone can apply the patch. Just modify the makefile resident in lib/System But, a new error is appeared llvm[2]: Linking Debug unit test ADT d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status make[2]: *** [Debug/ADTTests.exe] Error 1 make[2]: Leaving directory `/d/objs/llvm/msys/unittests/ADT' make[1]: *** [ADT/.makeall] Error 2 make[1]: Leaving directory `/d/objs/llvm/msys/unittests' make: *** [all] Error 1 I don't know why,...
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
...s+Using+MinGW32.aspx Now I can compile and install llvm-2.4 but the first step in the tutorial fails for me with another missing symbol: $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status I'm using GNU ld (GNU Binutils) 2.18.50.20080109. Thanks for any further help you can provide, Duncan Pierce
2009 Oct 02
0
[LLVMdev] llvm build errors on windows/mingw32
...y the patch. > > Just modify the makefile resident in lib/System > > But, a new error is appeared > llvm[2]: Linking Debug unit test ADT > d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > undefined reference to `GetProcessMemoryInfo at 12' GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 doesn't have this import lib. It is included in the MS Platform SDK, but I'm not sure whether you can link that into mingw32 programs...
2009 Oct 02
0
[LLVMdev] llvm build errors on windows/mingw32
On 2009-10-02 19:34, Ronald Pijnacker wrote: >> On 2009-10-02 01:07, 罗勇刚(Yonggang Luo) wrote: >>> d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: >>> undefined reference to `GetProcessMemoryInfo at 12' >> GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 >> doesn't have this import lib. It is included in the MS Platform SDK, >> but I'm not sure whether you can link that into mingw32 programs... > msdn suggests kernel32, but that is al...
2009 Oct 02
2
[LLVMdev] llvm build errors on windows/mingw32
> >>> d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > >>> undefined reference to `GetProcessMemoryInfo at 12' > >> GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 > >> doesn't have this import lib. It is included in the MS Platform SDK, > >> but I'm not sure whether you can link that into mingw32 programs... > > msdn suggests kern...
2009 Jan 17
0
[LLVMdev] Build problems on MinGW
Hello, Duncan > $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 > /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): > undefined reference to `GetProcessMemoryInfo at 12' > collect2: ld returned 1 exit status I believe you will need additional libraries like imagehlp and psapi. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
Hi Anton >> $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 >> /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): >> undefined reference to `GetProcessMemoryInfo at 12' >> collect2: ld returned 1 exit status > I believe you will need additional libraries like imagehlp and psapi. I have /lib/libimagehlp.a and /lib/libpsapi.a nm --defined-only /lib/libpsapi.a | grep "GetProcessMemoryInfo" - returns: 00000000 T _GetProcessMemoryInfo...
2009 Oct 02
0
[LLVMdev] llvm build errors on windows/mingw32
> > >>> d:/objs/llvm/msys/Debug/lib/libLLVMSystem.a(Process.o):e:/Downloads/llvm-trunk/lib/System/Win32/Process.inc:78: > > >>> undefined reference to `GetProcessMemoryInfo at 12' > > >> GetProcessMemoryInfo should be defined in psapi.lib, but AFAICS mingw32 > > >> doesn't have this import lib. It is included in the MS Platform SDK, > > >> but I'm not sure whether you can link that into mingw32 programs... > > &gt...
2005 Sep 14
1
[LLVMdev] How to compile llvm with mingw on Windows ?
...Signals.cpp: undefined reference to `_imp__SymGetLineFromAddr at 16' collect2: ld returned 1 exit status llvm[2]: Linking Release executable fpcmp (without symbols) e:/prg/vc/llvm-cvs-mingw/llvm/mingw-obj/Release/lib/libLLVMSystem.a(Process.o)(.text+0x8d):Process.cpp: undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status * make TOOLS_VERBOSE=1 output: g++ -I/e/prg/vc/llvm-cvs-mingw/llvm/mingw-obj/utils/fpcmp -I/e/prg/vc/llvm-cvs-mingw/llvm/mingw-obj/../utils/fpcmp -I/e/prg/vc/llvm-cvs-mingw/llvm/mingw-obj/include -I/e/prg/vc/llvm-cvs-mingw/llvm/mingw-obj/../include...
2009 Jan 13
0
[LLVMdev] Build problems on MinGW
Hello, Duncan > * LD (which I took to be representative of Binutils version) 2.17.50 > 20060824 > None of these are marked "bad" in your compatibility matrix, but not > many of them are marked "good" either. > > During build I get lots of missing symbol errors from LD. Near the end > it goes through a monster link step that spews many screenfuls of link
2009 Jan 17
0
[LLVMdev] Build problems on MinGW
Duncan Pierce <duncan at duncanpierce.org> writes: > I have /lib/libimagehlp.a and /lib/libpsapi.a > > nm --defined-only /lib/libpsapi.a | grep "GetProcessMemoryInfo" - > > returns: > > 00000000 T _GetProcessMemoryInfo at 12 > 00000000 I __imp__GetProcessMemoryInfo at 12 > > And llvm-config seems to be asking for them to be picked up: > > -I//include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2 > -fomit-frame-pointer -W...
2009 Oct 01
0
[LLVMdev] llvm build errors on windows/mingw32
Wow, I also meet this error before, I'll be pleasure if anyone can solve this problem, and by the way, are you using msys as the building env? It's seems that mingw/cmake is working but mingw/msys, and I didn't ever try with mingw/cygwin:) thanks. 2009/10/1, Ronald Pijnacker <pijnacker at dse.nl>: > Hi all, > > When I try to build llvm on windows/mingw32, I get the
2010 Sep 07
0
[LLVMdev] llvm-config error
Hello, António. 2010/9/7 António Saragga Seabra <antseabra at gmail.com>: > I’m having a few problems building the kaleidoscope example (chapter 3) > under MinGW. To build the example I use as recommended > g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy > sh: llvm-config: command not found You need MSYS's perl to use llvm-config on mingw. Does
2009 Oct 01
2
[LLVMdev] llvm build errors on windows/mingw32
Hi all, When I try to build llvm on windows/mingw32, I get the following error: In file included from c:/work/mingw/src/llvm/lib/System/Signals.cpp:33: c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc: In function 'LONG LLVMUnhandledExceptionFilter(_EXCEPTION_POINTERS*)': c:/work/mingw/src/llvm/lib/System/Win32/Signals.inc:275: error: exception handling disabled, use -fexceptions to
2009 Jan 13
2
[LLVMdev] Build problems on MinGW
Hello everyone, I'm struggling to get a working LLVM installation on MinGW on Windows Vista. I have the following packages: * LLVM 2.4 * Gnu make 3.81 * GCC 3.4.5 (mingw-vista special r3) * Perl 5.6.1 * Texinfo 4.11 * LD (which I took to be representative of Binutils version) 2.17.50 20060824 None of these are marked "bad" in your compatibility matrix, but not many of them are
2010 Sep 27
1
[LLVMdev] Shared Libraries (dlls) using MinGW
...data structures referencing symbols from auto-imported DLLs. CMakeFiles/LLVMSystem.dir/DynamicLibrary.cpp.obj:DynamicLibrary.cpp:(.text+0x40a): undefined reference to `_imp__EnumerateLoadedModules at 12' CMakeFiles/LLVMSystem.dir/Process.cpp.obj:Process.cpp:(.text+0xbe): undefined reference to `GetProcessMemoryInfo at 12' CMakeFiles/LLVMSystem.dir/Signals.cpp.obj:Signals.cpp:(.text+0x1d9): undefined reference to `_imp__SymSetOptions at 4' CMakeFiles/LLVMSystem.dir/Signals.cpp.obj:Signals.cpp:(.text+0x1f9): undefined reference to `_imp__SymInitialize at 12' CMakeFiles/LLVMSystem.dir/Signals.cpp.obj...