[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] Compiling under Borland C++ Builder 6
From: |
Michele Santucci |
Subject: |
[Help-gsl] Compiling under Borland C++ Builder 6 |
Date: |
Tue, 6 Sep 2005 11:31:40 +0200 |
Hello ML,
I recently discovered this wonderful library and I'm trying to use it into
my devel. environment:
Borland C++ Builder 6 Pro. I tried several times to recompile the source
package without
great luck then I downloaded the binary release (DLL) of the library and
tried to create
the 'lib' to link to executables using Borland's IMPLIB utility...
The first result was this:
Warning duplicate symbol: gsl_sf_bessel_i0_scaled
Warning duplicate symbol: gsl_sf_bessel_i0_scaled_e
Warning duplicate symbol: gsl_sf_bessel_i1_scaled
Warning duplicate symbol: gsl_sf_bessel_i1_scaled_e
Warning duplicate symbol: gsl_sf_bessel_j0
Warning duplicate symbol: gsl_sf_bessel_j0_e
Warning duplicate symbol: gsl_sf_bessel_j1
Warning duplicate symbol: gsl_sf_bessel_j1_e
Warning duplicate symbol: gsl_sf_bessel_k0_scaled
Warning duplicate symbol: gsl_sf_bessel_k0_scaled_e
Warning duplicate symbol: gsl_sf_bessel_k1_scaled
Warning duplicate symbol: gsl_sf_bessel_k1_scaled_e
Warning duplicate symbol: gsl_sf_bessel_y0
Warning duplicate symbol: gsl_sf_bessel_y0_e
Warning duplicate symbol: gsl_sf_bessel_y1
Warning duplicate symbol: gsl_sf_bessel_y1_e
After that I tried using the -c option and I finally got a clean result ...
after that I tried to create
a simple application using the library (I got this example from original GSL
docs):
This's the whole project source (unit1.cpp):
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include <gsl/gsl_sf_bessel.h>
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
double x = Edit2->Text.ToDouble();
double y = gsl_sf_bessel_J0 (x);
Edit1->Text.sprintf ("J0(%g) = %.18e\n", x, y);
}
But when I try to build everything I got this (linker) error:
[Linker Error] Unresolved external '_gsl_sf_bessel_J0' referenced from
C:\DOCUMENTS AND SETTINGS\MICHELE\DESKTOP\GSL\UNIT1.OBJ
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. +390187564080
Via Fontevivo 21/M
19126 La Spezia
===================
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 02/09/2005
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-gsl] Compiling under Borland C++ Builder 6,
Michele Santucci <=