Answer the question
In order to leave comments, you need to log in
Download libraries for c++ in linux?
Hello.
On Linux, Mageia installed Eclipse. Now I'm trying to run a file (a console application for working with a file) that needs the libraries "stdafx.h", process.h, conio.h, windows.h.
These libraries do not exist. Is it possible to download them for Linux? Or take it from the computer where VS2010 is installed?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
It's not even funny...
"stdafx.h" is not a library! habrahabr.ru/company/pvs-studio/blog/227521
It is necessary to redo the application itself under Linux. Download windows.h then you can, but don't make it all work ;)
windows.h for linux? No, of course you can copy it, but what will you do next? h-files are just type descriptors and function headers, the functions themselves for windows.h are implemented mostly in WinAPI, which of course is not available under Linux.
If you want to port a program, then deal with all non-standard data types and function calls, look for their analogues under Linux and include the appropriate h-files and libraries.
The best option is to initially look for wrappers in the form of libraries - abstractions over your system calls.
For example, waiting for a keypress and a pause in your case, as I assume.
In this case, Linux should be some kind of analogue, and pauses should be better implemented through streams (which are now required by the C ++ 11 standard).
And in C++, compiled libraries (you're not going to include source codes in every project, are you?) are mostly limited by the platform/compiler, but in all cases you can find the necessary functionality.
Good luck
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question