Displaying 4 results from an estimated 4 matches for "__imp__getprocessmemoryinfo".
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
...t; 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 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 -Woverloaded-virtual
-L//lib -lpsapi -limagehlp -lm
-lLLVMCore -lLLVMSupport -lLLVMSystem
So I'm still mystified.
Best regards,
Duncan
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.
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
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 -Woverloaded-virtual
> -L//lib -lpsapi -limagehlp -lm
> -lLLVMCore -lLLVMSupport -lLLVMSystem
>
> So I'm...