forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 4:19 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New to alglib, having probs with undefined symbols
PostPosted: Mon Oct 18, 2010 4:37 am 
Offline

Joined: Mon Oct 18, 2010 4:20 am
Posts: 1
Hi, I'm new to alglib and having some issues compiling my code.

In my header file I have included the following:
Code:
#include "alglibinternal.h"
#include "alglibmisc.h"
#include "ap.h"
#include "linalg.h"
#include "solvers.h"

alglib::integer_2d_array c;


In the constructor in my .c file I have the following:
Code:
alglib::integer_2d_array c;
c = "[[1,2,3],[9,9,9]]";


I am getting the following error message:
Quote:
Undefined symbols:
"alglib::integer_2d_array::integer_2d_array(char const*)", referenced from:
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
"alglib::integer_2d_array::integer_2d_array()", referenced from:
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
"alglib::integer_2d_array::~integer_2d_array()", referenced from:
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
GLWidget::GLWidget(QWidget*)in glwidget.o
"alglib::ae_matrix_wrapper::operator=(alglib::ae_matrix_wrapper const&)", referenced from:
alglib::integer_2d_array::operator=(alglib::integer_2d_array const&)in glwidget.o


I would greatly appreciate if someone might point out what's wrong. Thanks!


Top
 Profile  
 
 Post subject: Re: New to alglib, having probs with undefined symbols
PostPosted: Mon Oct 18, 2010 5:54 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You should attach all .cpp files from alglib/src directory to your project. Including headers is not enough.

In particular, "alglib::integer_2d_array::integer_2d_array(char const*)" means that you are missing ap.cpp file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group