FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

GSL library

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
errenay



Joined: 04 Nov 2009
Posts: 1

PostPosted: Thu Nov 05, 2009 8:04 am    Post subject: GSL library Reply with quote

I have problem with GSL library. I tried to use NetBeans + Cygwin g++ 4.3. I also installed GSL library via Cygwin (gsl + gsl-apps + gsl-devel+gsl-doc).
I tried to use this example http://www.gnu.org/software/gsl/manual/html_node/Example-statistical-programs.html. I also set:
Properties - Build - Linker - Additional Library Directories - C:/cygwin/lib
Properties - Build - Linker - Additional Dependencies - libgslcblas.a libgsl.a
But there is an error:
Code:
/usr/bin/make -f nbproject/Makefile-Release.mk SUBPROJECTS= .clean-conf
make[1]: Entering directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
rm -f -r build/Release
rm -f dist/Release/Cygwin_4.x-Windows/generatorcatbond1.exe
make[1]: Leaving directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
CLEAN SUCCESSFUL (total time: 1s)

/usr/bin/make -f nbproject/Makefile-Release.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
/usr/bin/make  -f nbproject/Makefile-Release.mk dist/Release/Cygwin_4.x-Windows/generatorcatbond1.exe
make[2]: Entering directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
mkdir -p build/Release/Cygwin_4.x-Windows
rm -f build/Release/Cygwin_4.x-Windows/main.o.d
g++.exe    -c -O2 -MMD -MP -MF build/Release/Cygwin_4.x-Windows/main.o.d -o build/Release/Cygwin_4.x-Windows/main.o main.cpp
make[2]: *** No rule to make target `libgslcblas.a', needed by `dist/Release/Cygwin_4.x-Windows/generatorcatbond1.exe'.  Stop.
make[2]: Leaving directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Users/xxx/Documents/NetBeansProjects/GeneratorCatBond1'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 3s)


I also tried to use CodeBlocks + MinGW + Gsl for Windows (http://gnuwin32.sourceforge.net/packages/gsl.htm) and everything works smooth.
Any help would be appreciated.
Back to top
View user's profile Send private message
Alexey Vladykin
Posted via mailing list.





PostPosted: Mon Nov 16, 2009 12:19 pm    Post subject: GSL library Reply with quote

These two --- libgslcblas.a and libgsl.a --- should not be specified as
additional dependencies. Instead they should be added to
Build -> Linker -> Libraries -> Add Option -> Other Option:
"-lgslcblas" (as one separate option) and "-lgsl" (as another separate
option).

Alternative approach: Build -> Linker -> Libraries -> Add Library File.

Alexey
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB