<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Todd McCollough</title>
	<atom:link href="http://www.toddmccollough.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toddmccollough.com</link>
	<description>Todd McCollough&#039;s Official Website</description>
	<lastBuildDate>Wed, 25 May 2011 04:29:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Todd McCollough</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-25</link>
		<dc:creator>Todd McCollough</dc:creator>
		<pubDate>Wed, 25 May 2011 04:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-25</guid>
		<description>hmm not sure Nick, it worked as tested for the configurations indicated above. What version of Visual Studio are you using?</description>
		<content:encoded><![CDATA[<p>hmm not sure Nick, it worked as tested for the configurations indicated above. What version of Visual Studio are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Nick</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-23</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 15 May 2011 00:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-23</guid>
		<description>Hi,

I tried the Win64/Matlab64 example but when building the DLL I received the error: C1853: &#039;x64\Release\test.pch&#039; precompiled header is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice cersa)

I tried renaming test.cpp and it will build and loadlibrary in Matlab but not calllib, any ideas? thank you</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried the Win64/Matlab64 example but when building the DLL I received the error: C1853: &#8216;x64\Release\test.pch&#8217; precompiled header is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice cersa)</p>
<p>I tried renaming test.cpp and it will build and loadlibrary in Matlab but not calllib, any ideas? thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by guest</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-14</link>
		<dc:creator>guest</dc:creator>
		<pubDate>Thu, 18 Nov 2010 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-14</guid>
		<description>Oh Yes. 6 houre searching an dnow i have the answer. you are my new hero for today!
thanks soooooo much!

greetings</description>
		<content:encoded><![CDATA[<p>Oh Yes. 6 houre searching an dnow i have the answer. you are my new hero for today!<br />
thanks soooooo much!</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Todd McCollough</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-13</link>
		<dc:creator>Todd McCollough</dc:creator>
		<pubDate>Tue, 16 Nov 2010 18:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-13</guid>
		<description>Hi Tobias,

I have seen that error before. You need to be very careful that you have followed all of the steps outlined above such as having Visual Studio 2008 Pro SP1 installed with the 64 bit compilers.

That error may be occurring because it is attempting to use a 32 bit compiler, but I can&#039;t remember entirely.

I encourage you to visit the mathworks.com forums and read up on MATLAB documentation if you are still having difficulty.</description>
		<content:encoded><![CDATA[<p>Hi Tobias,</p>
<p>I have seen that error before. You need to be very careful that you have followed all of the steps outlined above such as having Visual Studio 2008 Pro SP1 installed with the 64 bit compilers.</p>
<p>That error may be occurring because it is attempting to use a 32 bit compiler, but I can&#8217;t remember entirely.</p>
<p>I encourage you to visit the mathworks.com forums and read up on MATLAB documentation if you are still having difficulty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Tobias</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-12</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Tue, 16 Nov 2010 15:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-12</guid>
		<description>Hi

I downloaded Microsoft SDK with the &quot;x64 Compilers and Tools&quot;. I have VS2008 Professional from before. When I follow the example on this page, for the case &quot;Windows 64 bit with 64 bit MATLAB&quot;, I get the following error:

??? Error using ==&gt; loadlibrary at 368
Failed to preprocess the input file.
Output from preprocessor is:&#039;cl&#039; is not recognized as an internal or external command, operable program or batch file.

The error comes when loadlibrary is trying to evaluate: [res,ccout]=system(preprocess_command),

where 

preprocess_command =

&quot;%VS90COMNTOOLS%..\..\VC\vcvarsall.bat&quot; amd64&gt;nul&amp;cl -nologo  -I&quot;C:\Program Files\Matlab\extern\include&quot; -E &quot;C:\Users\myUser\Desktop\Loadlibrary test\Test.h&quot; &gt; &quot;Test.i&quot;


If I remove the call to system(); I get the following error message later in the code:

??? Error using ==&gt; loadlibrary at 388
Call to Perl failed.  Possible error processing header file.
Output of Perl command:
Can not open file Test.i because No such file or directory at C:\Program
Files\Matlab\toolbox\matlab\general\private\prototypes.pl line 34.

Can you help me please? What should I do?
/Tobias</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I downloaded Microsoft SDK with the &#8220;x64 Compilers and Tools&#8221;. I have VS2008 Professional from before. When I follow the example on this page, for the case &#8220;Windows 64 bit with 64 bit MATLAB&#8221;, I get the following error:</p>
<p>??? Error using ==&gt; loadlibrary at 368<br />
Failed to preprocess the input file.<br />
Output from preprocessor is:&#8217;cl&#8217; is not recognized as an internal or external command, operable program or batch file.</p>
<p>The error comes when loadlibrary is trying to evaluate: [res,ccout]=system(preprocess_command),</p>
<p>where </p>
<p>preprocess_command =</p>
<p>&#8220;%VS90COMNTOOLS%..\..\VC\vcvarsall.bat&#8221; amd64&gt;nul&amp;cl -nologo  -I&#8221;C:\Program Files\Matlab\extern\include&#8221; -E &#8220;C:\Users\myUser\Desktop\Loadlibrary test\Test.h&#8221; &gt; &#8220;Test.i&#8221;</p>
<p>If I remove the call to system(); I get the following error message later in the code:</p>
<p>??? Error using ==&gt; loadlibrary at 388<br />
Call to Perl failed.  Possible error processing header file.<br />
Output of Perl command:<br />
Can not open file Test.i because No such file or directory at C:\Program<br />
Files\Matlab\toolbox\matlab\general\private\prototypes.pl line 34.</p>
<p>Can you help me please? What should I do?<br />
/Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Todd McCollough</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-11</link>
		<dc:creator>Todd McCollough</dc:creator>
		<pubDate>Thu, 19 Aug 2010 04:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-11</guid>
		<description>Hi Xin,

There are very specific steps to take when doing this which I have outlined in my blog post. I have successfully set this up numerous times with different versions of MATLAB and on different machines.

I encourage you to carefully review my post and perform the steps. Then explain to me specifically what the problem is if you are still having difficulty. You may need to install Windows SDK. I also recommend seeking advice on mathworks.com in the forums as people who develop MATLAB regularly post and check there.</description>
		<content:encoded><![CDATA[<p>Hi Xin,</p>
<p>There are very specific steps to take when doing this which I have outlined in my blog post. I have successfully set this up numerous times with different versions of MATLAB and on different machines.</p>
<p>I encourage you to carefully review my post and perform the steps. Then explain to me specifically what the problem is if you are still having difficulty. You may need to install Windows SDK. I also recommend seeking advice on mathworks.com in the forums as people who develop MATLAB regularly post and check there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Xin</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-10</link>
		<dc:creator>Xin</dc:creator>
		<pubDate>Sat, 14 Aug 2010 03:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-10</guid>
		<description>Hi Todd,
Thank you very much for your reply.
I am sure that I chose full install during the install of visual studio. But I got the following in MATLAB:
&gt;&gt; !set VS
VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\ 
&gt;&gt; !&quot;%VS90COMNTOOLS%..\..\VC\vcvarsall.bat&quot;
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

I think MATLAB is using the x86 compiler instead of x64. Do you know how to check the x64 compiler? I have re-installed the visual studio several times, and it still goes like this.
Thanks a lot for your help.

Xin</description>
		<content:encoded><![CDATA[<p>Hi Todd,<br />
Thank you very much for your reply.<br />
I am sure that I chose full install during the install of visual studio. But I got the following in MATLAB:<br />
&gt;&gt; !set VS<br />
VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\<br />
&gt;&gt; !&#8221;%VS90COMNTOOLS%..\..\VC\vcvarsall.bat&#8221;<br />
Setting environment for using Microsoft Visual Studio 2008 x86 tools.</p>
<p>I think MATLAB is using the x86 compiler instead of x64. Do you know how to check the x64 compiler? I have re-installed the visual studio several times, and it still goes like this.<br />
Thanks a lot for your help.</p>
<p>Xin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Todd McCollough</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-9</link>
		<dc:creator>Todd McCollough</dc:creator>
		<pubDate>Fri, 13 Aug 2010 23:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-9</guid>
		<description>Hi Xin

Do you make sure you have the test.h and test.dll files in the current MATLAB directory. When you open MATLAB you need to make sure you browse to the correct folder so that you can see the files on the left sidebar in MATLAB default view.

If you are using 64 bit Windows did you make sure you did a full install and/or installed the 64 bit compilers.

Did you make sure you compiled both the header and source files correctly into the dll? MATLAB needs the header file and the dll file.</description>
		<content:encoded><![CDATA[<p>Hi Xin</p>
<p>Do you make sure you have the test.h and test.dll files in the current MATLAB directory. When you open MATLAB you need to make sure you browse to the correct folder so that you can see the files on the left sidebar in MATLAB default view.</p>
<p>If you are using 64 bit Windows did you make sure you did a full install and/or installed the 64 bit compilers.</p>
<p>Did you make sure you compiled both the header and source files correctly into the dll? MATLAB needs the header file and the dll file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Xin</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-8</link>
		<dc:creator>Xin</dc:creator>
		<pubDate>Fri, 13 Aug 2010 21:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-8</guid>
		<description>Thank you very much for your sharing.
I also installed Microsoft Visual Studio 2008 Pro SP1 and MATLAB 2009b on my computer. But When I tried to use &#039;loadlibrary&#039;, it always came out an error that &#039;fatal error C1083: Cannot open include file:&#039;test.h&#039;: No such file or directory&#039;
Do you have any idea where the problem is?
Any help would be appreciated.

Xin</description>
		<content:encoded><![CDATA[<p>Thank you very much for your sharing.<br />
I also installed Microsoft Visual Studio 2008 Pro SP1 and MATLAB 2009b on my computer. But When I tried to use &#8216;loadlibrary&#8217;, it always came out an error that &#8216;fatal error C1083: Cannot open include file:&#8217;test.h&#8217;: No such file or directory&#8217;<br />
Do you have any idea where the problem is?<br />
Any help would be appreciated.</p>
<p>Xin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a .dll file in Windows 32 bit and 64 bit and Compile in Matlab 32 bit and 64 bit and how to write a .so file in Ubuntu (Linux) and Compile in 64 bit Matlab by Fabian</title>
		<link>http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/comment-page-1/#comment-7</link>
		<dc:creator>Fabian</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.toddmccollough.com/?p=98#comment-7</guid>
		<description>Thanks for this usefull blog entry!</description>
		<content:encoded><![CDATA[<p>Thanks for this usefull blog entry!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

