problem with creating mat files from C++ (visual studio 2005)

Hi,

I am having trouble creating mat files from my visual studio 2005
express. For example, the
matcreat.c file that is given as an example in the mathworks site,
produced 13 linking errors of this type:

1>Linking...
1>matcreat.obj : error LNK2019: unresolved external symbol _mxGetString
referenced in function _main
(...)

this happened although I set up the VC++ directories for include files
and libraries to point to the matlab\extern\include and
matlab\extern\lib\ respectively.

Any help will be greatly appreciated. Thank you
ilias

PS. Some secondary questions I have:
(a) mex -setup "sees" only the lcc compiler and not the msvc as it
should from visual studio 2005. I did add the cl.exe path to the
environmental variable path but the result is the same. I recently
installed the 9.1 intel compiler, same problem.
(b)If you have played with vms isual c++ 2005, there is supposed to be
a "compile tab" in the solution manager. Any thoughts why there is not
in mine ?

0
iliast (9)
6/10/2006 6:39:37 AM
comp.soft-sys.matlab 206979 articles. 0 followers. lunamoonmoon (258) is leader. Post Follow

2 Replies
428 Views

Similar Articles

[PageSpeed] 10
This is not a problem associated with "mat files" exactly. You're obviously 
using some library routines from somewhere and have not included them 
correctly in your project.

So the question is: What library are you using, and how are you including it 
in your project?

-- 
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"ilias" <iliast@gmail.com> wrote in message 
news:1149921577.837903.252670@h76g2000cwa.googlegroups.com...
> Hi,
>
> I am having trouble creating mat files from my visual studio 2005
> express. For example, the
> matcreat.c file that is given as an example in the mathworks site,
> produced 13 linking errors of this type:
>
> 1>Linking...
> 1>matcreat.obj : error LNK2019: unresolved external symbol _mxGetString
> referenced in function _main
> (...)
>
> this happened although I set up the VC++ directories for include files
> and libraries to point to the matlab\extern\include and
> matlab\extern\lib\ respectively.
>
> Any help will be greatly appreciated. Thank you
> ilias
>
> PS. Some secondary questions I have:
> (a) mex -setup "sees" only the lcc compiler and not the msvc as it
> should from visual studio 2005. I did add the cl.exe path to the
> environmental variable path but the result is the same. I recently
> installed the 9.1 intel compiler, same problem.
> (b)If you have played with vms isual c++ 2005, there is supposed to be
> a "compile tab" in the solution manager. Any thoughts why there is not
> in mine ?
> 


0
jwood (6)
6/10/2006 5:54:33 PM
Thanks for your reply. Including these two libraries , solves the
problem.

#pragma comment(lib, "libmat.lib")
#pragma comment(lib, "libmx.lib")

Does anyone have an answer to the other two questions, namely why mex
-setup can't see the msvc compiler and why there is no compile tab in
the solution explorer?

Thanks !
ilias

0
iliast (9)
6/10/2006 6:45:31 PM
Reply:
Similar Artilces:

ORA-00997 8i trigger long raw problem
Hi, Have a table that i need to populate with 1 record of an identical type from another table in an after insert using a trigger. Usually no problem at all except am forced into using and keeping a field which is a LONG RAW type that now generates an ORA-00997 error. It is all text stored in a LONG RAW format. The table the record needs to be inserted INTO looks like ... RFQ_ID VARCHAR2 15 RFQ_LINE NUMBER 0 TYPE CHAR 1 BITS LONG RAW BITS_LENGTH NUMBER 0 The data the table comes FROM looks like this. PART VARCHAR2 30 PART_LINE NUMBER 0 TYPE CHAR 1 BITS LONG RAW BITS_LENG...

HLA asm problem?
When compiling my HLA code I get (100s of these): .... dted3.asm:182: Error: suffix or operands invalid for `push' dted3.asm:199: Error: suffix or operands invalid for `push' dted3.asm:201: Error: suffix or operands invalid for `push' dted3.asm:221: Error: suffix or operands invalid for `pop' .... When I try it on another Linux box it compiles no problem. Problem box: SuSE 10.0 (kernel 2.6.13-15.8), HLA 1.86, GNU assembler 2.16.91.0.2 20050720 (SuSE Linux) No problem box: SuSE 9.2 (kernel 2.6.8-24), HLA 1.86, GNU assembler 2.15.91.0.2 20040727 (SuSE Linux) ---John jchludz...

Opening a PSPimage file
From PSP8 in PSP7. I am trying to follow a tut that says the tut can be done in 7 but when I open the file, the layers are there but there isn't any content on the layers. Any suggestions greatly appreciated. -- katie Helena Handbasket wrote: > From PSP8 in PSP7. I am trying to follow a tut that says the tut can > be done in 7 but when I open the file, the layers are there but there > isn't any content on the layers. > > Any suggestions greatly appreciated. Which tutorial? http://www.wgbcreations.com/Tole/KittyFairy/ -- katie > > Which tutorial? > ...

a problem
hi, any one of the group ,please solve my problem "is there is any method to find given number is even or odd without using if ,else ,for,while,switch,conditional operators,if else ladders...." On 10 Feb 2007 06:15:46 -0800, bharath539@gmail.com wrote: > any one of the group ,please solve my problem > "is there is any method to find given number is even > or odd without using if ,else ,for,while,switch,conditional > operators,if else ladders...." Yes, there is. Problem solved! /gordon -- [ don't email me supp...

Registry Problem in Vista
Since I got Vista, Eudora has been unable to register itself in the registry. Every time I start Eudora, I get a pop up that claims Eudora could not register itself and I have to dismiss the pop up before Eudora will process the mail. This also prevents Eudora from being registered as the default mail client. Has anyone solved that annoyance? (This may be a non-issue for me, since I am considering wiping this notebook, and installing XP. The answer may help me make up my mind.) Rick Rick wrote: > Since I got Vista, Eudora has been unable to register itself in the >...

123 VER9 DATE PROBLEM
I am attempting to assign a script to a button that will, when first placed in the proper cell. Enter @now- then do a range value- then place in edit mode- then move the cursor to the start and erase the 2 characters that are the day and await the input of the day I want to use- then it closes with the enter button. I have figured all this out except that the {EDIT} command when used returns the date number. I have found that it does not represent the F2 keystroke. What am I missing here. The cell is formatted date-13-Dec-2006. Thanks Dave David Cartier wrote... >I am at...

Menu Problems
figure string = {'Item 1','Item 2','Item 3'}; %Menu menu_hdl = uimenu('Label','Options'); for i = 1:3 uimenu(menu_hdl,'Label',char(string(i)),'Callback','disp(char(string(i )))'); end problem- when uimenu is executed in the for loop variable i is assigned as intended to the label in the menu but when the Callback is executed from the menu it grabs the latest value of i and not the one that should have been assigned when the menu was created. Is there any way to get the desired value of i passed to disp(char(stri...

-1 / +1 problem..
Hello all, I am sorry to ask you again for another problem, as I am a new MATLab user. I have a matrix, rAlphaSet with combinations of +1 and -1. I want to make 2 Matrices rAlpha1 and rAlpha2. I took 2 random numbers r1 and r2. Then I wanted to copy the r1th and r2th column of rAlphaSet to rAplha1 and rAlpha2. But the problem is, when I was running the code, rAlpha1 and rAlpha2 were not having the columns from rAlphaSet. Here is the code: rAlphaSet = (npermutek([-1 1], 2^m))'; rAlpha1 = zeros(2^m,N); rAlpha2 = zeros(2^m,N); for i = 1:N r = randi(256,1); rAlpha1(:,i) = rAlphaSet...

Generic file name validation code?
I need to validate a file name but it has to work on Windows & Unix! Does anybody know of java code that does this? thanks in advance harry harry wrote: > I need to validate a file name but it has to work on Windows & Unix! > > Does anybody know of java code that does this? > > thanks in advance > > harry > > This sounds easy to write using the java.util.regex package. How should a file name look like ? harry <a@abc.com> wrote: >I need to validate a file name but it has to work on Windows & Unix! What's &q...

Re: Error when creating view with macro variable
In this>>> create view &VIEWEXT (var1, var2, flx_dis_dtd) AS This isnt valid syntax (var1, var2, flx_dis_dtd) Remove it or move it to where it is suppose to go too Toby Dunn "Don't bail. The best gold is at the bottom of barrels of crap." Randy Pausch "Be prepared. Luck is where preparation meets opportunity." Randy Pausch > Date: Thu, 10 Jan 2008 15:53:05 -0500 > From: laffilippe@YAHOO.FR > Subject: Error when creating view with macro variable > To: SAS-L@LISTSERV.UGA.EDU > > Hi, > > I used a PROC SQL, with a simple CREATE VIEW...

Problem with PID.vi
I'm using LABVIEW 4.1 with PID Toolkit I use PID VI. I try to use it in an furnace control but doesn't work. For example, with a set point of 50% output stay still to a level of 25% with the PV following this value. What could be the origin of this problem? Does anyone succeed in working perfectly with PID VI from NI? Advices are welcome Hello hora, My first bit of advice would be to see if you have tuned your PID correctly. It would seem to me that you have proportional gain (K) but no integral (I) to eliminate your SP-PV error. Also watch the "reinitial (F)" input. ...

Suse: SCSI file transfer causes hard lock, 15 month bug still open
"A system hard RESET, or power off and on, is required to restore functionality." https://bugzilla.novell.com/show_bug.cgi?id=238572 This bug was reported Jan 2007, and it's still open? On Mon, 21 Apr 2008 01:36:01 -0400, DFS wrote: > "A system hard RESET, or power off and on, is required to restore > functionality." > > https://bugzilla.novell.com/show_bug.cgi?id=238572 > > > > This bug was reported Jan 2007, and it's still open? So much for the many eyes method. -- Moshe Goldfarb Collector of soaps from around the globe. P...

I also need help with Duplex on my IP4000 (Different Problem)
It seems that if I print the same document with exact same settings the print quality of black is paler when using Duplex. It seems that it is not using the same black ink as the Non Duplex printing. Anyone know if this is the case, or should I try a reinstall of the software? Thanks Mike FIRST YOU SHOULD USE ONLY CANON OEM PIGMENTED INK AND SELECT PLAIN PAPER. THEN YOU SHOULD USE A HIGH QUALITY PAPER LIKE HAMMERMILL PREMIUM INKJET PAPER THAT YOU CAN GET AT STAPLES OR OFFICE DEPOT. YOU SHOULD NOT EXPERIENCE THAT. BUT IF YOU DO NOT USE CANON OEM INK THEN YOU ...

Problems with compilation for Windows
Trying to prepare FreeWrap for Windows, I've got a problems while compiling Tk 8.5.1 (using free "Express" release of Visual C++, taken from MS-site). The compilation has been interrupted with errors: ============================================================================= link -nologo -machine:IX86 -ltcg -release -opt:ref -opt:icf,3 -subsystem :windows -stack:2300000 -out:".\Release_VC9\wish85s.exe" kernel32.lib user32.lib gdi32.lib "c:\freewrap\tcl8.5.1\win\Release_VC9\tcl85s.lib" .\Release_VC9\tk_St atic\winMain.obj .\Release_VC9\tk_Static\wi...

Problems with wxProcess::OnTerminate()
I'm having problems with the following code. The program (sleep.exe) is executed as expected, but Process::OnTerminate() is never called. (The text "Terminated" is not printed and it never breaks on the function in the debugger). I'm using Visual C++ 7.1 and the program is linked to wxBase with wxUSE_GUI set to 0. All help is apreciated. Here's the code: ------------------------------------ main.cpp --------------------------- #include <wx/process.h> #include <wx/app.h> /********************************************************************...

Problem with comma delimted file
My access table when exported to a comma delimited field gets all messed up because some of the fields have the double quote character - ". Used for measurements and other things. I guess I will have to strip them out. How can I replace the " for a blank space? I am having trouble doing it with the replace command in a sql statement. sqlstatement = "update table set table.[item] = replace(table.[item]," & """""""" & "," + """""" + ")" this gives an error. what to do? On...

Monitor problem
Hi, This shows how long it's been since I've had to do this... I've had to get some material off the RiscStation in front of me at work. It's connected to an IIyama VisionMaster 1451 (nice big monitor), but I'm not getting any display. I've tried pressing 0 on boot (as well as 1 - 4) and T (and R - can't remember what the reset is), but nothing seems to happen. Is there any way I can get a machine to boot so it thinks the monitor is an AKF51 (or whatever the "default" was)? TTFN Paul -- "Logic, my dear Zoe, is merely the ability to be wrong wi...

problem with auctex
All, I just installed auctex in Windows. And because I uses a portable MikTex (installed in a USB disk), the PATH doesn't include the directory that contains the LaTeX executable commands. Is there a way in Emacs or auctex that can tell auctex where to find the latex commands? For example, can I setup the PATH variables directly in Emacs? Thanks you! caixj "halo" <xuejun.cai@gmail.com> wrote in message news:1160815903.006626.26780@m7g2000cwm.googlegroups.com... > All, > > I just installed auctex in Windows. And because I uses a portable > MikTex (installed...

===Welcome to comp.lang.c++! Read this first. #9 413656
Welcome to comp.lang.c++! Read this first. This post is intended to give the new reader an introduction to reading and posting in this newsgroup. We respectfully request that you read all the way through this post, as it helps make for a more pleasant and useful group for everyone. First of all, please keep in mind that comp.lang.c++ is a group for discussion of general issues of the C++ programming language, as defined by the ANSI/ISO language standard. If you have a problem that is specific to a particular system or compiler, you are much more likely to get complete and accurate ...

installation problem uconv-0.4.12. plz help
Hi guys, I need to install Unicode Conversion Module for Ruby version 0.4.12 by Yoshida Masato.I have followed the commands of the link inmy windows system http://www.yoshidam.net/uconv_en.txt but when I use the command "ruby extconf.rb" it create "MakeFile" but when I use "make" command it fails...'make' is not recognized as a command so I can not install Uconv. I use ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32] How can i solve the problem? Any other way to convert Unicode string to Japanese string. -- Posted via http://www.ruby-forum.com...

love problem solution baba ji +917891655189 mumbai #2
love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +917891655189love problem solution baba ji +9178916551...

US-TX-Austin: Inside Sales Rep., Inside Sales Background or Cold Calling Exp., c (45354432408)
US-TX-Austin: Inside Sales Rep., Inside Sales Background or Cold Calling Exp., c (45354432408) ============================================================================================== Position: Sales Rep. Reference: ZYD00005 Location: Austin TX Duration: Contract to Perm Skills: Inside Sales Rep Background or Cold Calling Exp. Outgoing Self-Motivated Strong Personal Character Exceptional Values Strong Personality Team Player Good Perseverance ...

problems installing...
Cheers all, i realize 6.3 is old, but its the disks we have here. My problem is this. Im trying to install this on old sun O2 machines that already have an existing irix install on them. I basically want to whipe the system clean and start fresh. So i boot up, hit esc, install system software, blablabla select cd rom, reboots, boots up IRIX release 6.3 ..... Current system date is.... Mounting file systems: /dev/dsk/dks0d1s0: Invalid agrument Unable to mount partition: /dev/dskdks0d1s0 on /root. This is your system disk: without it we have nothing on which to install so...

1 KB hidden files
just out of curiosity: why is solidworks saving every document it creates also in a 1 KB version starts with "~$" (like ~$part1.sldprt with windows hidden attribute) ? This is a Microsoft thing. The tilde files are there to let the system know that a program has a file open. When a file is successfully closed the tilde file should go away. If SW terminates unexpectedly the tilde files will remain. If they remain after SolidWorks closes, delete them. I've been deleting them for years with no problem. Best Regards, Devon T. Sowell www.3-ddesignsolutions.com "TOP&qu...

ASA to IOS VPN problem
This is a multi-part message in MIME format. --------------080700010601090400070905 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hi all, I am facing a problem trying to establish a tunnel with one of our supplier. Their side is terminated on a IOS router currently unknown type and version (should be 12.2 - 12.4), my side is an ASA 7.2(2), configurations are attached (at least the snippet of the IOS config I was able to get). Apparently Phase 1 completes correctly but P2 fails with "Received non-routine Notify message: No proposal cho...