[C con Clase] LIBRERÍA IMSL

Victor Hugo Andaluz Ortiz victor_hugo0301 en hotmail.com
Lun Jun 30 16:58:57 CEST 2008



HOLA..
estoy utilizando Visual C++ 6.0 y la IMSL(R) es C Numerical Library Version 6.0
Lo que estoy haciendo es correr un ejemplo de la librería IMSL, el ejemplo es:


****************
***************
// prueb3isml.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include <stdio.h>
#include <imsl.h>
#include <math.h>

Main()
{

int n = 3;
float *x;
float a[] = {1.0, 3.0, 3.0,
             1.0, 3.0, 4.0,
             1.0, 4.0, 3.0};
float b[] = {1.0, 4.0, -1.0};


/* Solve Ax = b for x */

x = imsl_f_lin_sol_gen (n, a, b, 0);

/* Print x */

imsl_f_write_matrix ("Solution, x, of Ax = b", 1, 3, x, 0);

}


*****************
*****************
y como resultado me da lo siguiente:

Deleting intermediate files and output files for project 'prueb3isml - Win32 Release'.
--------------------Configuration: prueb3isml - Win32 Release--------------------
Compiling...
StdAfx.cpp
Compiling...
prueb3isml.cpp
C:\Archivos de programa\Microsoft Visual Studio\MyProjects\prueb3isml\prueb3isml.cpp(27) : warning C4508: 'Main' : function should return a value; 'void' return type assumed
Linking...
prueb3isml.obj : error LNK2001: unresolved external symbol _imsl_f_write_matrix
prueb3isml.obj : error LNK2001: unresolved external symbol _imsl_f_lin_sol_gen
LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain en 16
Release/prueb3isml.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

prueb3isml.exe - 4 error(s), 1 warning(s)


Cómo podría solucionar estos errores...???


_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.conclase.net/pipermail/cconclase_listas.conclase.net/attachments/20080630/b4482406/attachment.html>


Más información sobre la lista de distribución Cconclase