www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - kernel32 missing symbol definitions?

reply Yamiez <orre_dala live.se> writes:
Why is kernel32 missing symbols?

e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
Jan 07
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 08/01/16 1:27 PM, Yamiez wrote:
 Why is kernel32 missing symbols?

 e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Jan 07
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 08/01/16 1:30 PM, Rikki Cattermole wrote:
 On 08/01/16 1:27 PM, Yamiez wrote:
 Why is kernel32 missing symbols?

 e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
grah, s/64/64 bit/
Jan 07
parent Yamiez <orre_dala live.se> writes:
On Friday, 8 January 2016 at 00:31:25 UTC, Rikki Cattermole wrote:
 On 08/01/16 1:30 PM, Rikki Cattermole wrote:
 On 08/01/16 1:27 PM, Yamiez wrote:
 Why is kernel32 missing symbols?

 e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
grah, s/64/64 bit/
Possible to just write a C program that wraps the actual kernel functions that I need and then just import those from the C lib?
Jan 07
prev sibling parent Yamiez <orre_dala live.se> writes:
On Friday, 8 January 2016 at 00:30:44 UTC, Rikki Cattermole wrote:
 On 08/01/16 1:27 PM, Yamiez wrote:
 Why is kernel32 missing symbols?

 e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Yea nope wont be able to build for 64 bit :/
Jan 07
prev sibling parent Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 8 January 2016 at 00:27:51 UTC, Yamiez wrote:
 Why is kernel32 missing symbols?

 e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
The kernel32 lib has them, the headers don't. You can define the missing functions yourselves and call them: --- import core.sys.windows.windows; extern(Windows) HANDLE CreateToolhelp32Snapshot( DWORD dwFlags, DWORD th32ProcessID ); void main() { CreateToolhelp32Snapshot(0, 0); } --- CreateProcess is there but might not be aliased for ascii vs unicode. Try CreateProcessA or CreateProcessW in your code.
Jan 07