473,769 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling GSL with MinGW - undefined reference

Hi,

I have been having an insane amount of trouble trying to compile a GNU
Scientific Library example with MinGW on WinXP. I have been able to
compile it fine on my linux box and on my windows machine with cygwin.
However, when I try to compile it with MinGW I keep getting this error:

undefined reference to 'gsl_sf_bessel_ J0'

I have copied the GSL library files and header files from my cygwin
folders to the MinGW folders.

I eventually want to compile a dll for use with excel that solves
special functions like bessel and lambert.

Thank you,

Rob

Nov 14 '05 #1
4 8868

"rhzehr" <rh****@hotmail .com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi,

I have been having an insane amount of trouble trying to compile a GNU
Scientific Library example with MinGW on WinXP. I have been able to
compile it fine on my linux box and on my windows machine with cygwin.
However, when I try to compile it with MinGW I keep getting this error:

undefined reference to 'gsl_sf_bessel_ J0'

I have copied the GSL library files and header files from my cygwin
folders to the MinGW folders.

I eventually want to compile a dll for use with excel that solves
special functions like bessel and lambert.

Thank you,

Rob

Nov 14 '05 #2

"rhzehr" <rh****@hotmail .com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi,

I have been having an insane amount of trouble trying to compile a GNU
Scientific Library example with MinGW on WinXP. I have been able to
compile it fine on my linux box and on my windows machine with cygwin.
However, when I try to compile it with MinGW I keep getting this error:

undefined reference to 'gsl_sf_bessel_ J0'

So you want the C standard, and the Microsoft libraries, amended on the spot
so you don't have to try Google to learn how?
Nov 14 '05 #3
rhzehr wrote:
Hi,

I have been having an insane amount of trouble trying to compile a GNU
Scientific Library example with MinGW on WinXP. I have been able to
compile it fine on my linux box and on my windows machine with cygwin.
However, when I try to compile it with MinGW I keep getting this error:

undefined reference to 'gsl_sf_bessel_ J0'

I have copied the GSL library files and header files from my cygwin
folders to the MinGW folders.

I eventually want to compile a dll for use with excel that solves
special functions like bessel and lambert.


Specific compiler-OS-library combinations are off-topic round here.
Try the GSL mailing list
(http://mail.gnu.org/mailman/listinfo/help-gsl/) or some forum for
MinGW/gcc.

Try to find out more about the nature of your problem, i.e.
did you link against the GSL, did the linker find it at the
specified location, does this GSL contain gsl_sf_bessel_J O,
maybe rebuild the library.
And use google.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #4
On 24 Apr 2005 20:16:52 -0700, in comp.lang.c , "rhzehr"
<rh****@hotmail .com> wrote:
Hi,

I have been having an insane amount of trouble trying to compile a GNU
Scientific Library example with MinGW on WinXP. I have been able to
compile it fine on my linux box and on my windows machine with cygwin.
However, when I try to compile it with MinGW I keep getting this error:

undefined reference to 'gsl_sf_bessel_ J0'
are you sure this isn't a link error? See FAQ entry 13.25
I have copied the GSL library files and header files from my cygwin
folders to the MinGW folders.


and did you link against the library? Normally you need to explicitly
do this. Ask in a MingW related group to find out how to do it.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt >

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4931
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are the occurrences of FilterType that may be relevant: ------- C:\sketch\sketch-0.7.12\Filter\filterobj.c: 949: PyTypeObject FilterType = {
5
2693
by: Mike S. | last post by:
Hello, Has anyone had success compiling the informixdb-1.3 module under python 2.2? It seems the absense of makefile.pre.in in python 2.2 causes the break under py2.2. Is there an easy way around this. I've heard rumors of a manual method, but have been unable to track down details. Any help is very much appreciated. Thanks in advance, Mike
1
31201
by: Dom | last post by:
I'm new to c++. Just started learning it 24 hours ago. Am running into a compile problem. Please, no one waste the effort telling me to google it. I've been researching it for quite a while with no joy. I got dev-c++ and a bit of winsock sample code. I've done nothing out of the ordinary. I could only assume that anyone else that downloaded this software and attempted this would meet with the same result. The problem lies with either the...
3
2336
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
0
2323
by: heddy Boubaker | last post by:
hi, as the subject said I've pb compiling php-4.4.4 and php-5.1.6 with ldap module activated on linux debian sarge (2.6.8-3-686-smp) : - for 4.4.4 I've % /bin/sh /www/src/php-4.4.4/libtool --silent --preserve-dup-deps --mode=compile /www/src/php-4.4.4/meta_ccld -Isapi/cli/ ext/ldap/ldap.lo(.text+0x26a3): In function `zif_ldap_set_option': : undefined reference to `ber_pvt_opt_on' collect2: ld returned 1 exit status
2
4769
by: fangee | last post by:
Hi everybody, I'm facing a problem trying to statically compile a simple c++ prog, something like: int main(){ return 1; } Using g++ 2.95.4 (I must use this to compile a much more complex program) this way I get the following output:
0
1338
by: mani | last post by:
Hi I'm bringing up an old story once more! I'm on win32 (winxp sp2) python 2.4.4. mingw gcc version is 3.4.5. msys is in c:\msys. mingw is in c:\mingw and python is in c:\pyton24. there is also python24.lib and libpython24.a in c:\python24\libs. when I try to compile this sample code from with command in msys shell I get the results . this subject was discussed a few times over these years and I tried everything in the posts and...
2
3598
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
1
4361
by: LoneWolf | last post by:
Hi im trying to compile some code im developing that uses opengl and glut on mingw(using eclipse as the IDE) but im having linker errors like: g++ -o(OUTPUT).exe (.o files here) -lopengl32 -lglu32 -lglaux -lglut32 Warning: resolving __imp__glEnable by linking to __imp__glEnable@4 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving __imp__glBlendFunc by linking to...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7408
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.