473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

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 8833

"rhzehr" <rh****@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.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.googlegr oups.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_JO,
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
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...
5
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...
1
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...
3
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'...
0
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...
2
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...
0
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...
2
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
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.