Adding GSL (or any othe library) in Eclipse [message #231303] |
Sun, 08 March 2009 10:55 |
Eclipse User |
|
|
|
Originally posted by: sorated.gmail.com
Hello, I'm using Eclipse 3.4.2 / CDT 5.0.2 / MinGW 3.4.2 (coincidence ?)
under Windows Vista.
I installed the GSL library under
C:\Users\Teodor\workspace\gsl-1.11
In order to have the header files available for a project I need to
1) Add "C:\Users\Teodor\workspace\gsl-1.11\include" to
Project Properties -> C/C++ General -> Paths and Symbols -> Include
for both GC and Gnu C and Gnu C++ languages
2) Add "gsl" to
Project Properties -> C/C++ Build -> Settings -> Tool Settings -> MinGW
C++ Linker -> Libraries -> Libraries
3) Add "C:\Users\Teodor\workspace\gsl-1.11\lib" to
Project Properties -> C/C++ Build -> Settings -> Tool Settings -> MinGW
C++ Linker -> Libraries -> Library Search Path
And it's a pain in the a++ (!
Is there a way to do things automatically for every new project ?
Need I modify some Eclipse configuration files ?
Or can I write a Makefile template that already contains the GSL options
for the compiler(s) and the linker ?
Thanks,
Teodor
|
|
|
Powered by
FUDForum. Page generated in 0.04648 seconds