Displaying 20 results from an estimated 1000 matches similar to: "Re: A problem with GetProcessMemoryInfo?"
2008 May 18
2
A problem with GetProcessMemoryInfo?
I have made a simple program, but results from both windows and wine are quite different. Is this a bug in my program or in wine? Any advice is appreciated :)
/*
result under windows:
{
}
[successed: 1085440]{
}
result under wine(linux):
{
}
[successed: 0]{
*/
#include <windows.h>
#include "psapi.h"
#include <stdio.h>
#include <stdlib.h>
#pragma comment ( lib,
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 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,
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
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
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:
>
>
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
2009 Oct 02
2
[LLVMdev] llvm build errors on windows/mingw32
> On 2009-10-02 01:07, 罗勇刚(Yonggang Luo) wrote:
> > Well, Now I get the 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
> >
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
2010 Sep 07
2
[LLVMdev] llvm-config error
Hello,
Takumi, you are absolutely right! It was a problem with Perl. Many thanks!
That problem solved, tried to compile again the kaleidoscope example but
unfortunatelly now I get the link errors found bellow:
$g++ -g –O3 toy.cpp `llvm-config –cppflags –ldflags –libs core`-o toy
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4d4):
undefined reference to
2009 Oct 02
0
[LLVMdev] llvm build errors on windows/mingw32
On 2009-10-02 01:07, 罗勇刚(Yonggang Luo) wrote:
> Well, Now I get the 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
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
2009/1/13 Anton Korobeynikov <anton at korobeynikov.info>:
> Hello, Duncan
>
> * LD (which I took to be representative of Binutils version) 2.17.50
> 20060824
> Why you're using such old binutils? 2.18.50-20080109 definitely worked for
> me (and release binaries were built so...).
Thank you for your reply Anton. I'm sorry it's taken a while to get
back to you.
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
2008 Nov 09
2
[LLVMdev] Mingw, cross-compiling,___eprintf
Cross-compiling from Ubuntu 8.04 x86_64 to mingw with the cmake
build system fails with this error while linking some tools:
../../lib/libLLVMSystem.a(DynamicLibrary.cpp.obj):DynamicLibrary.cpp:(.text+0x367):
undefined reference to `___eprintf'
___eprintf is mentioned in lib/System/Win32/DynamicLibrary.inc. This
symbol is referenced by libLLVMSystem.a when LLVM is natively built on
2009 Oct 01
6
[LLVMdev] llvm build errors on windows/mingw32
Well, Now I get the 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]: ***
2012 Feb 17
2
DC Universe Online not working with new nvidia drivers
I'm not sure if this is a wine or nvidia related bug, so I'd really appreciate some help...
After upgrading to nvidia 295.20 this game fails to start, giving the following error:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<crash_report>
<version_cookie />
<platform>win32</platform>
<os_info>Version 5.1 Build 2600
2009 Oct 02
0
[LLVMdev] llvm build errors on windows/mingw32
On 2009-10-02 21:37, Benjamin Kramer wrote:
>> I had a close look at the link line, and -lpsapi is specified before
>> -lLLVMSystem (which is giving the error).
>> When I put -lpsapi after -lLLVMSystem, it links ok.
>
> I commited a fix for this problem and a modified version of Jay's
> patch here:
>
2010 Dec 14
1
"Problem in Installing wine"
Hi,
I had redhat linux2.6.18-164.el5 x86_64 bit machine.I tried to install wine-1.2-rc1 and got the following error:
checking for sys/thr.h... no
checking for pthread_np.h... no
checking for linux/videodev.h... yes
checking for linux/capi.h... yes
checking for ldd... /usr/bin/ldd
checking whether we can build a GNU style ELF dll... yes
checking whether the compiler supports -fPIC -shared
2010 May 20
1
Patching wine -- 64bits
Hello, first, sorry for my english, my native language is spanish and i haven not been a good student.
My problem is the next;
I have ubuntu 10.04TLS, I installed "Runes Of Magic" and got a lot of problems for play, for the last one, I also found the solution, is apply a patch, or edit minidump.c file, this file is inside source codes of wine avaible for download like:
2001 Feb 23
0
cross building
I was trying to learn cross building an R pcakage for windows on my linux
machine. I picked a relatively small library gee to test. I downloaded the
cross-tools and put them in my path,
jyan at ludwig:/a3/jyan/src/R-1.2.1/src/gnuwin32$ echo $PATH
/home/jyan/cross-tools/bin:/home/jyan/cross-tools/i386-mingw32msvc/bin:
/usr/lib:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
Following the