View Single Post
  #1   Spotlight this post!  
Unread 24-03-2012, 16:57
Scimor5 Scimor5 is offline
Registered User
AKA: Brett
FRC #4520 (Misfit Toys)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Post Falls
Posts: 11
Scimor5 is an unknown quantity at this point
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
This command compiles and links the code files
"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
info about libraries can be found with the pkgconfig command.
__________________
Good luck from team 4520