how can i work with windows.h

Asked by Ramki

in ubantu, how can i add windows.h header file or win32API to gcc

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Warren Hill (warren-hill) said :
#1

Why would you want to?

It is trivial to add the header files just copy them. However, unless you add the functionality that goes with them they are useless.

Ubuntu is not Windows its Application programming Interface "API" is very different. You can't expect source code for windows to compile and run under Ubuntu (or the other way round). If you did copy the header files the result would probably be that instead of getting a compile error you would get a link error.

If you can tell us more what you are trying to do we may be able to help further.

Can you help with this problem?

Provide an answer of your own, or ask Ramki for more information if necessary.

To post a message you must log in.