hi! What is makefile? How does it work? Is it done in the terminal? I am using Unix OS
>What is makefile?
Basically a list of instructions sent to the compiler/linker, including things such as the files to compile, paths, libraries, etc. You don't need one, but it sure beats typing out a long command everytime you want to compile your project.
>How does it work?
On *nix systems, you invoke the makefile with the [search]make[/search] command.
>Is it done in the terminal?
The file can be written in any text editor, but yes, you'll need a terminal to run
Here's some (rather a lot!) information on creating/using one:
Additionally, if you decide to use an IDE such as [search]KDevelop[/search] or [search]Code::Blocks[/search], it will automatically generate a makefile for the project, saving you the trouble.
I am having trouble in compiling my c++ source codes.. Do you have any suggestions where I could find complete manuals in compiling c++ codes? thanks
>I am having trouble in compiling my c++ source codes
What are you trying to compile? Source code that you wrote? What errors came up?
>Do you have any suggestions where I could find complete manuals in compiling c++ codes?
You can always check out the Unix man pages of the varioius tools, such as gcc/g++, make, etc. Furthermore, if you can use an IDE, do it, because it saves you the trouble of dealing with makefiles (although it's still a good idea to learn both).
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...