1

Topic: A little questions on

Never  under , only a poppy (that as a matter of fact  as I understand) and Windows. But here to the client  to collect one of libraries under Linux therefore I have some questions. 1) it is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? 2) I so understand GCC am built already in any ? 3) the Library under  is as I understand. a file as well as under a poppy? 4) what analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of a make-file In advance thanks for answers to idiotic questions.

2

Re: A little questions on

A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? It is better to collect exactly in that distribution kit which the client uses. A> 2) I so understand GCC am built already in any ? It is built in. But it is necessary to learn what from the client who will use . A> 3) the Library under  is as I understand. a file as well as under a poppy?.a if dynamic *.so A> 4) What analog proj  is that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? make, it is better cmake A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of make-file Qt Creator, CLion

3

Re: A little questions on

Hello, Amygdala, you wrote: A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? That distribution kit, which at the client is necessary to you. A> 2) I so understand GCC am built already in any ? It is a separate packet which is installed, no less than all other. A> 3) the library under  is as I understand. a file as well as under a poppy? Do not think criteria "file", ".a". Think criteria "packet", "version". Check to me, the library file is not necessary to you. The packet which installs this library to the client is necessary to you. A> 4) what analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? Makefile, cmake, ninja and so on. Most easier cmake  if at you it is simple . But most likely at you all will be already ready also to you it is necessary  to launch configure/make/make install (in a separate folder) / packet assemblage to Collect a packet most easier it: https://github.com/jordansissel/fpm A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of a make-file Correctly you think. But if  it will be necessary - that strangely enough, vscode the most general-purpose.

4

Re: A little questions on

Hello, Amygdala, you wrote: A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? At you already is Linux on Windows 10 - it is possible to try to practice on it (there the version of a kernel will be higher). A> 2) I so understand GCC am built already in any ? In the selected distribution kit can be, but still there there should be any manager of programs who allows to download the necessary programs and libraries. A> 3) the library under  is as I understand. a file as well as under a poppy? Dynamic  will have a name format lib*.so.* A> 4) What analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? Most likely, it will be necessary  scripts by means of Automake A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of make-file IDE few any, people use text editors with  - emacs, vim, and many other things. Answers to all questions you will find in this book: https://www.ozon.ru/context/detail/id/31083556/

5

Re: A little questions on

Hello, TimurSPB, you wrote: A>> 4) What analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? TSP> make, it is better cmake And than cmake it is better? A>> 5) or is any IDE the normal? Jotas I think better without IDE and simply type of make-file TSP> Qt Creator, CLion CLion it is good, but  dynamic libraries does not allow.

6

Re: A little questions on

Hello, Vladek, you wrote: V> At you already is Linux on Windows 10 - it is possible to try to practice on it (there the version of a kernel will be higher). So in the same place generally kernels () are not present.

7

Re: A little questions on

Hello, Vladek, you wrote: V> At you already is Linux on Windows 10 - it is possible to try to practice on it (there the version of a kernel will be higher). What for it is necessary, when is Docker, Vagrant, VirtualBox? V> IDE few any, people use text editors with  - emacs, vim, and many other things. On the big projects you will be tired vim to configure and fingers you will break. Eclipse, than not IDE?

8

Re: A little questions on

Hello, Amygdala, you wrote: A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? Libraries do not depend on the kernel version  if you do not use any  the calls accessible only in the last kernels. Put any. You can any old Ubuntu like 12.04 for certain to be assured that all works. A> 2) I so understand GCC am built already in any ? In repositories is in any made . A> 3) the Library under  is as I understand. a file as well as under a poppy?.a it is static library.so it is dynamic. A> 4) what analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? Most easier to use make. A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of a make-file If aim to compile and forget, it is better not . Write the elementary Makefile and all: lib.a: lib1.o lib2.o ar rcs $ $ ^ clean: rm-f *.o lib.a lib1.o corresponds lib1.c

9

Re: A little questions on

Hello, komod, you wrote: K> And than cmake it is better? It is logical, clear, allows to program the configs.

10

Re: A little questions on

Hello, Amygdala, you wrote: A> But here to the client  to collect one of libraries under Linux therefore I have some questions. Put in  same as at the client and forward on ssh through putty mc or directly with gui (vcxsrv, xming) A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? Here matter is not in a kernel and in dependences (glibc) and architecture (x86, x64, arm, mips...) A> 2) I so understand GCC am built already in any ? Is not present but is easily put sudo yum groupinstall ' Development Tools ' sudo apt get-install build-essential or you google in a place in dependence on package manager A> 3) the Library under  is as I understand. a file as well as under a poppy? Normally.so - dynamic.a it is static A> 4) What analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? add.c int add (int x, int y) {return x+y;} test.c int add (int x, int y); int main (int argc, char ** argv) {return add (argc, 1);} build.sh #!/bin/sh gcc-o libadd.so-shared add.c gcc-o test test.c-L.-ladd A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of a make-file CodeLite,Kdevelop,Eclipse,CLion,QtCreator,theide (U ++), vim, mcedit, sublime text A> In advance thanks for answers to idiotic questions. Here a part of answers to idiotic questions: https://www.lrde.epita.fr/~adl/dl/autotools.pdf deb http://packaging.ubuntu.com/ru/html/index.html (debian, ubuntu...) rpm http://www.lexpr.ru/rpm_guide (redhad, centos, suse...) video the instruction Still is packman Wajig tagpkg and .. And most  the advanced method snap https://docs.snapcraft.io/build-snaps/(drags together with itself all and still a floor ) normal application will be from 200 ps: libc-2.7.chm

11

Re: A little questions on

S> It is logical, clear, allows to program the configs. It looking as it to write. make as a whole too it is quite good. cmake it is more likely useful when something .

12

Re: A little questions on

A> 1) It is necessary to collect  under kernel Linux Kernel v4.1.46. What of millions various  to me to put, that there was a necessary version? Normally all  with libc which also is a cross connect-distributive an interlayer between a kernel and space. In  years kernel began to expose in   dynamic  which provide a call of its functions instead of straight lines syscall. But  directly with a kernel normally implies static  with libc (libc will be  in yours ), it means that there will be compatibility issues not only with others  but also with the  other version. Therefore I . If  dynamic with libc that as a whole the distribution kit type not so is important (it is possible to take almost any), the main thing that the version libc was less or is equal to the version of the version at the customer (they are upward compatible) and coincided used ABI. A> 2) I so understand GCC am built already in any ? No. It is necessary to put a packet (). Some  "for development" the automatic machine put them at development. A> 3) the library under  is as I understand. a file as well as under a poppy?.a - static  (upon it.a with a heap , it it is possible to unpack and pack easier archive hands).so - dynamic  By default ld (, it the loader) searches static , in case of failure searches for the dynamic. To put a prefix lib it is not necessary (it is put by the automatic machine). A> 4) What analog proj  is, that without everyones IDE simply to feed to the compiler file set of the project with instructions of a way for ? make Or in vim::! gcc file1.c file2.c file3.c [-I <path_to_includes>] [-L <path_to_libs>] [-llib1 [-l lib2...]]-o result (: forgot any keys of type shared, but there in man gcc all is written) Also in vim it is possible to install MAKEPRG=make\arg1\arg2\... (Or MAKEPRG=gcc...) And to use a command:make A> 5) Or is any IDE the normal? Jotas I think better without IDE and simply type of a make-file Is, vim/emacs/mcedit In make files there is nothing difficult, the main thing tab and space not to confuse (for vim there is a plug-in with illumination tab).

13

Re: A little questions on

K> On the big projects you will be tired vim to configure and fingers you will break. vim it is configured exactly once and it does not depend on number and  projects (personally at me the configuration is reduced to 4 to lines)