Hi,
I have compiled my cpp code in my matlab sucessfully using "mex" command. The compiler I used in "mex" is Visual C++ 8.0 compiler.
However, when I try to use gcc compiler instead for compile this file for matlab use in Linux environment, the compilation is not successful.
The error message I got is the following. Any hints or explanation would be appreciated. Thank you in advance.
gary
>> mex ldpc_encoder_pr epros_c.cpp
ldpc_encoder_pr epros_c.o: In function `CLDPCEncoderPr eProc::UrbankeC H(int)':
ldpc_encoder_pr epros_c.cpp:(.t ext+0x37d): undefined reference to `CLDPCEncoderPr eProc::ColUnkow n'
ldpc_encoder_pr epros_c.o: In function `CLDPCEncoderPr eProc::CLDPCEnc oderPreProc(uns igned int, unsigned int, unsigned int, unsigned int, double const*, int const*, int const*, double const*)':
ldpc_encoder_pr epros_c.cpp:(.t ext+0xb14): undefined reference to `CLDPCEncoderPr eProc::ColUnkow n'
ldpc_encoder_pr epros_c.o: In function `CLDPCEncoderPr eProc::UrbankeA H(int)':
ldpc_encoder_pr epros_c.cpp:(.t ext+0xf93): undefined reference to `CLDPCEncoderPr eProc::ColUnkow n'
ldpc_encoder_pr epros_c.o: In function `CLDPCEncoderPr eProc::UrbankeC HT(int)':
ldpc_encoder_pr epros_c.cpp:(.t ext+0x162e): undefined reference to `CLDPCEncoderPr eProc::ColUnkow n'
ldpc_encoder_pr epros_c.o: In function `CLDPCEncoderPr eProc::CLDPCEnc oderPreProc(uns igned int, unsigned int, unsigned int, unsigned int, double const*, int const*, int const*, double const*)':
ldpc_encoder_pr epros_c.cpp:(.t ext+0x2404): undefined reference to `CLDPCEncoderPr eProc::ColUnkow n'
collect2: ld returned 1 exit status
1 4634
Undefined references occur in two places.
First, during the compile when you use something that has not been declared. If this is your situation , check that all header files have been included.
Second, things compile OK but die in the link due to unresolved references. Here you need to be sure that all sources files were part of the build and that all libraries were correctly added to the build.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dataangel |
last post by:
I'm a student who's considering doing a project for a Machine Learning
class on pathing (bots learning to run through a maze). The language
primarily used by the class has been Matlab. I would prefer to do the
bulk of the project in python because I'm familiar with pygame (for the
visuals) but I already have a lot of AI code written in Matlab.
I'd like to be able to call Matlab code from within python. I'm not sure
this is possible. My...
|
by: Mohammed Smadi |
last post by:
Hi;
Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.
I know this is probably more suitable to a matlab group but any ideas will
be appreciated.
|
by: Carl |
last post by:
I am desperately looking for a way to call Python from Matlab. I have become
used to Python's rich syntax and large number of libraries, and feel
ridiculously clumsy being stuck with Matlab's rather restricted facilities
for doing other things than standard mathematical work.
Does anyone know of good techniques (or readily available software) for
achieving a cross-language support between Python and Matlab?
Carl
|
by: lord.tyranus.96 |
last post by:
Hi wizards, does somebody know how to read a matlab file with visual
basic .net . Thanks in advance.
|
by: Nimmi Srivastav |
last post by:
Apologies if my cross posting has offended anyone....
For a pure hobbyist C/C++ programmer, who wants to develop
applications to run on Windows, what would be a better choice to
install: Visual C++ Express 2005 Edition or lcc-win32? Does anyone
have any opinion to share?
Also, is there a C++ compiler akin to lcc-win32?
Thanks,
| |
by: itcecsa |
last post by:
Hi,
I am implementing a small Python project, what I am going to do is to
open Matlab and run some M-files, and get some output from Matlab
command prompt.
I have no idea how to open Matlab from Python!
Any suggestions would be appriciated!
|
by: sanctus |
last post by:
I have a Matlab code which works fine in windows. Now I installed Xubuntu (because this way I have admin rights(=root) which I don't have on windows) and want to use the same code.
To be able to use the C-code you have to compile it from Matlab comand line with the comand mex myfile.c where before with mex -setup you define which compiler to use, the only choice I had was gcc (version 4.something).
Now if I compile I get the following...
|
by: ataeft |
last post by:
does any body know how to connect MATLAB 2008 with VISUAL
C++ 2008? The files which are produced by MATLAB compiler
4.8 are not working in VISUAL C++ 2008!!
During building the project in visual C++, there are a lot
of linking problems!
I need to use some MATLAB functions in my VISUAL C++(2008)
program, I tried this way, but it is not working!!
Does anybody know any other way?
|
by: Luna Moon |
last post by:
Dear all,
Can C++/STL/Boost do the vectorized calculation as those in Matlab?
For example, in the following code, what I really want to do is to
send in a vector of u's.
All other parameters such as t, l1, l2, l3, etc. are scalars...
But u is a vector.
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |