|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Re: A work around for Linux users
compiling in a terminal is really easy. for c++ programs using g++ and its arguments correctly takes care of everything.
Code:
g++ -o myProgram thing.cpp main.cpp "thing.cpp" and "main.cpp" together into the executable program called "myProgram". other things to worry about are libraries -I : Sets the path to the include files. -L : Sets the path to the libraries. -l : Use this library (eg. -lm to use libmath.so, -lpthread to use libpthread.so) You can have multiple -I, -L and -l entries. So, your final command should look like this: Code:
g++ -o myProgram thing.cpp main.cpp -I /path/to/includes -L /path/to/libraries -l library1 -l library2 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|