g++ -Wall -I/usr/local/include/thrift *.cpp -lthrift -o something
I am new to Linux and am trying to learn "as I go along"....This is from the Apache Thrift website.
Also is the -I/usr supposed to be -I /usr?
Thanks for your help!
I am new to Linux and am trying to learn "as I go along"....This is from the Apache Thrift website. Also is the -I/usr supposed to be -I /usr? Thanks for your help! |
||||
|
|
|
Here is a breakdown of the command. First the original command, for reference
Now, for the breakdown.
This is the actual command command,
This is a compiler for programs written in C++ and C. It takes C or C++ code and turns it into a program, basically.
This part makes it display all warnings when compiling. (Warn All)
This part tells
This part passes every
This can also be
This tells it that when everything is compiled to place the executable in the file I hope this helps and please comment if anything is unclear! |
|||
|
|
|
Generally you should look for the documentation of a command in its man page: C (and C++) compilers have a somewhat peculiar syntax that doesn't heed the usual conventions for options (options come before operand, there's an optional space between an option and its argument, …). The space after Here's a quick overview of that command (look in the documentation for details):
|
|||
|
|