Use of library in different S.O

Asked

Viewed 43 times

0

Guys,have been developing some projects in C but at a certain time there was the need to use the library "Windows. h". So far so good, the problem is that I develop with Linux and researched about the library it is unique to Windows and obviously has no logic to use in my development environment. I wonder if you have any similarities for Linux.

  • 1

    Yes, you have learned correctly, which is unique to Windows does not work for Linux. If you are going to use one operating system’s unique API use it, do not try to use it on the other. There are other Apis on Linux, totally different, you have to learn them, not transpose what you had in one to the other.

  • There is no magic, each thing has to be converted manually, and some things are really different because there is no direct match. That’s why we make a port from one system to another is complicated thing and it takes a lot of time.

1 answer

1


  • 1

    Thanks for the info, bro!. Very helpful.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.