ndk and windows.h

Put problems with the Android NDK in this forum.

ndk and windows.h

Postby lord_ure » Thu Jun 17, 2010 10:14 am

Hi, I have a new problem with the ndk. I have to create a library from a .c file wich contains load dll library, so I have to use LoadLibrary function in my .C file. However I have to call #include <windows.h> to use this function and windows.h is unknown by unix, so I can't run the ndk-build script. I have tought that I could use the binary file of my .c file to use it in the ndk script, but I don't know if it is possible and how to do it (I have tried some things, but it doesn't work) . Or if you have a better idea, I'll take it.

By

PS: Sorry for my english but I'm french.
Sorry for my english, I'm french ........ :(
lord_ure
Developer
Developer
 
Posts: 46
Joined: Fri Apr 16, 2010 4:29 pm
Location: Nancy, FRANCE

Top

Re: ndk and windows.h

Postby lord_ure » Fri Jun 18, 2010 2:46 pm

I have the solution. As I develop under windows I have launched the ndk-build script with cygwin, I just have to install the w32api package on cygwin.
In fact it still doesn't work :roll: , but I think I have to refresh something :twisted:

by
Last edited by lord_ure on Mon Jun 21, 2010 2:33 pm, edited 1 time in total.
Sorry for my english, I'm french ........ :(
lord_ure
Developer
Developer
 
Posts: 46
Joined: Fri Apr 16, 2010 4:29 pm
Location: Nancy, FRANCE

Re: ndk and windows.h

Postby lord_ure » Mon Jun 21, 2010 2:29 pm

No, it doesn't work. And I can't add windows.h to android ....
So I think I have to code new functions not using windows library, :cry:

by
Sorry for my english, I'm french ........ :(
lord_ure
Developer
Developer
 
Posts: 46
Joined: Fri Apr 16, 2010 4:29 pm
Location: Nancy, FRANCE

Top

Return to NDK Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests