<?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 on: Compiling and Using TAUCS under Microsoft Visual Studio</title>
	<atom:link href="http://matrixprogramming.com/2008/12/taucs/feed" rel="self" type="application/rss+xml" />
	<link>http://matrixprogramming.com/2008/12/taucs</link>
	<description>Compiling numerical libraries</description>
	<lastBuildDate>Fri, 06 Jan 2012 09:16:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Evgenii Rudnyi</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-753</link>
		<dc:creator>Evgenii Rudnyi</dc:creator>
		<pubDate>Fri, 15 Jul 2011 05:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-753</guid>
		<description>TAUCS includes the LU factorization but it is rather slow. Here I would you recommend you MUMPS or UMFPACK. You will find some code to call all of them inlcuding TAUCS LU
http://matrixprogramming.com/2011/06/sample-code-in-c-to-run-sparse-solvers</description>
		<content:encoded><![CDATA[<p>TAUCS includes the LU factorization but it is rather slow. Here I would you recommend you MUMPS or UMFPACK. You will find some code to call all of them inlcuding TAUCS LU<br />
<a href="http://matrixprogramming.com/2011/06/sample-code-in-c-to-run-sparse-solvers" rel="nofollow">http://matrixprogramming.com/2011/06/sample-code-in-c-to-run-sparse-solvers</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbgao</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-752</link>
		<dc:creator>jbgao</dc:creator>
		<pubDate>Fri, 15 Jul 2011 03:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-752</guid>
		<description>Evgenii 

Can you change test_taucs_lowlevel.cpp for a non symmetrical coefficient matrix. In that case, not sure which function to replace taucs_ccs_permute_symmetrically which causes the same error as test_taucs2.cpp when A is non-symmetric.

jbgao</description>
		<content:encoded><![CDATA[<p>Evgenii </p>
<p>Can you change test_taucs_lowlevel.cpp for a non symmetrical coefficient matrix. In that case, not sure which function to replace taucs_ccs_permute_symmetrically which causes the same error as test_taucs2.cpp when A is non-symmetric.</p>
<p>jbgao</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbgao</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-751</link>
		<dc:creator>jbgao</dc:creator>
		<pubDate>Thu, 14 Jul 2011 23:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-751</guid>
		<description>A better way to compile Taucs with MS VC++ 2010 Express:

The first time when I installed the library,  I followed the following steps (I am using MS VC++ on windows)
&gt;configure
&gt;nmake (library created)
&gt;testscript (it worked well except I failed at the first program of cilk.)

After that, when I tried to build my own programs (projects) and I got link errors (missing many references from libtaucs.lib).  I spent quite a bit time to research on the internet and found that many have experienced the similar problem.  It is only today after carefully tracing scripts I noted that libtaucs.lib is no longer the original one produced from nmake.  The original one was deleted in running testscript.bat which calls to configure to produce a new makefile.   In this new makefile, there is a block code of the following

$(DIRLIB)libtaucs$(LIBEXT): $(libtaucs_content) $(STDDEPS)
- $(RM) $(DIRLIB)libtaucs$(LIBEXT)
$(AR) $(AOUTFLG)$(DIRLIB)libtaucs$(LIBEXT) $(libtaucs_content)
$(RANLIB) $(DIRLIB)libtaucs$(LIBEXT)

where $RM removes the libtaucs.lib that we need. Instead only relevant object files to the last test are packaged into the new libtaucs.lib which is not the one for other programming. 

The best way is to make a copy of libtaucs.lib before you run testscript.bat (OR SIMPLY DON&#039;T TRY TESTSCRIPT AT ALL), or to make a change to the program configure so that a relevant library name is used for each test example in testscript (I reported this to the author).  
 
jbgao</description>
		<content:encoded><![CDATA[<p>A better way to compile Taucs with MS VC++ 2010 Express:</p>
<p>The first time when I installed the library,  I followed the following steps (I am using MS VC++ on windows)<br />
&gt;configure<br />
&gt;nmake (library created)<br />
&gt;testscript (it worked well except I failed at the first program of cilk.)</p>
<p>After that, when I tried to build my own programs (projects) and I got link errors (missing many references from libtaucs.lib).  I spent quite a bit time to research on the internet and found that many have experienced the similar problem.  It is only today after carefully tracing scripts I noted that libtaucs.lib is no longer the original one produced from nmake.  The original one was deleted in running testscript.bat which calls to configure to produce a new makefile.   In this new makefile, there is a block code of the following</p>
<p>$(DIRLIB)libtaucs$(LIBEXT): $(libtaucs_content) $(STDDEPS)<br />
- $(RM) $(DIRLIB)libtaucs$(LIBEXT)<br />
$(AR) $(AOUTFLG)$(DIRLIB)libtaucs$(LIBEXT) $(libtaucs_content)<br />
$(RANLIB) $(DIRLIB)libtaucs$(LIBEXT)</p>
<p>where $RM removes the libtaucs.lib that we need. Instead only relevant object files to the last test are packaged into the new libtaucs.lib which is not the one for other programming. </p>
<p>The best way is to make a copy of libtaucs.lib before you run testscript.bat (OR SIMPLY DON&#8217;T TRY TESTSCRIPT AT ALL), or to make a change to the program configure so that a relevant library name is used for each test example in testscript (I reported this to the author).  </p>
<p>jbgao</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgenii Rudnyi</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-232</link>
		<dc:creator>Evgenii Rudnyi</dc:creator>
		<pubDate>Tue, 26 Oct 2010 17:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-232</guid>
		<description>My only guess is that you may need some flag in MS VS9, presumably they have changed something in default behavior. I would advice you to copy the obj file and libraries in one directory and try to link by hand. You could check what names are in the obj file and the libraries for example with nm in cygwin, see how to use nm for example here

http://matrixprogramming.com/2008/03/usingfortranfromc

So just make sure that you have dgemm_ in the object file and in the library (I guess in libf77blas.lib), then try to link from the command line. If this does not work ask why at some MS group, for example microsoft.public.vc.

I am not going soon to switch to VS9. Sorry. Could it be that they by default assume a .c file as C++?

You could also post your question at

http://groups.google.com/group/matrixprogramming/

It well might be that someone has already tried TAUCS with VS9. Put VS9 in the subject - this is clearly the reason.</description>
		<content:encoded><![CDATA[<p>My only guess is that you may need some flag in MS VS9, presumably they have changed something in default behavior. I would advice you to copy the obj file and libraries in one directory and try to link by hand. You could check what names are in the obj file and the libraries for example with nm in cygwin, see how to use nm for example here</p>
<p><a href="http://matrixprogramming.com/2008/03/usingfortranfromc" rel="nofollow">http://matrixprogramming.com/2008/03/usingfortranfromc</a></p>
<p>So just make sure that you have dgemm_ in the object file and in the library (I guess in libf77blas.lib), then try to link from the command line. If this does not work ask why at some MS group, for example microsoft.public.vc.</p>
<p>I am not going soon to switch to VS9. Sorry. Could it be that they by default assume a .c file as C++?</p>
<p>You could also post your question at</p>
<p><a href="http://groups.google.com/group/matrixprogramming/" rel="nofollow">http://groups.google.com/group/matrixprogramming/</a></p>
<p>It well might be that someone has already tried TAUCS with VS9. Put VS9 in the subject &#8211; this is clearly the reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-231</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Tue, 26 Oct 2010 11:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-231</guid>
		<description>yes, that&#039;s correct. here is the beginning of the output of my &#039;nmake&#039;:

---
cl -c /nologo /O2 /W3 /D &quot;WIN32&quot; /MT     -DMACHTYPE_ -I src\\ -I build\\ win32\\ -I external\\src\\    progs\\taucs_blas_underscore_test.c  /Foobj\\win32 \\taucs_blas_underscore_test.obj taucs_blas_underscore_test.c progs\\taucs_blas_underscore_test.c(33) : warning C4996: &#039;fopen&#039;: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(23
7) : see declaration of &#039;fopen&#039;

cl /nologo /MT /F64000000  /Feobj\\win32\\taucs_blas_underscore_test.exe obj\\win32\\taucs_blas_underscore_test.obj external\\lib\\win32\\liblapack.lib external\\lib\\win32\\libf77blas.lib external\\lib\\win32\\libcblas.lib external\\lib\\win32\\libatlas.lib external\\lib\\win32\\libmetis.lib external\\lib\\win32\\vcf2c.libtaucs_blas_underscore_test.obj : error LNK2019: unresolved external symbol dgemm
_ referenced in function main

obj\\win32\\taucs_blas_underscore_test.exe : fatal error LNK1120: 1 unresolved externals
obj\\win32\\taucs_blas_underscore_test.exe build\win32\taucs_config_tests.h &#039;obj\\win32\\taucs_blas_underscore_test.exe&#039; is not recognized as an internal or external command, operable program or batch file.
---

thanks,</description>
		<content:encoded><![CDATA[<p>yes, that&#8217;s correct. here is the beginning of the output of my &#8216;nmake&#8217;:</p>
<p>&#8212;<br />
cl -c /nologo /O2 /W3 /D &#8220;WIN32&#8243; /MT     -DMACHTYPE_ -I src\\ -I build\\ win32\\ -I external\\src\\    progs\\taucs_blas_underscore_test.c  /Foobj\\win32 \\taucs_blas_underscore_test.obj taucs_blas_underscore_test.c progs\\taucs_blas_underscore_test.c(33) : warning C4996: &#8216;fopen&#8217;: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(23<br />
7) : see declaration of &#8216;fopen&#8217;</p>
<p>cl /nologo /MT /F64000000  /Feobj\\win32\\taucs_blas_underscore_test.exe obj\\win32\\taucs_blas_underscore_test.obj external\\lib\\win32\\liblapack.lib external\\lib\\win32\\libf77blas.lib external\\lib\\win32\\libcblas.lib external\\lib\\win32\\libatlas.lib external\\lib\\win32\\libmetis.lib external\\lib\\win32\\vcf2c.libtaucs_blas_underscore_test.obj : error LNK2019: unresolved external symbol dgemm<br />
_ referenced in function main</p>
<p>obj\\win32\\taucs_blas_underscore_test.exe : fatal error LNK1120: 1 unresolved externals<br />
obj\\win32\\taucs_blas_underscore_test.exe build\win32\taucs_config_tests.h &#8216;obj\\win32\\taucs_blas_underscore_test.exe&#8217; is not recognized as an internal or external command, operable program or batch file.<br />
&#8212;</p>
<p>thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgenii Rudnyi</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-230</link>
		<dc:creator>Evgenii Rudnyi</dc:creator>
		<pubDate>Mon, 25 Oct 2010 18:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-230</guid>
		<description>Sorry, I have misunderstood your problem. TAUCS first compiles test programs to take a decision whether BLAS names have underscore or not. This is what happens by me right now

        cl -c /nologo /O2 /W3 /D &quot;WIN32&quot; /MT     -DMACHTYPE_i386 -I src\\ -I build\\win32\\ -I external\\src\\    progs\\taucs_blas_underscore_test.c  /Foobj\\win32\\taucs_blas_underscore_test.obj taucs_blas_underscore_test.c
progs\\taucs_blas_underscore_test.c(33) : warning C4996: &#039;fopen&#039;: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234): Siehe Deklaration von &#039;fopen&#039;
        cl /nologo /MT /F64000000  /Feobj\\win32\\taucs_blas_underscore_test.exe  obj\\win32\\taucs_blas_underscore_test.obj external\\lib\\win32\\liblapack.lib external\\lib\\win32\\libf77blas.lib external\\lib\\win32\\libcblas.lib external\\lib\\win32\\libatlas.lib external\\lib\\win32\\libmetis.lib external\\lib\\win32\\vcf2c.lib
        obj\\win32\\taucs_blas_underscore_test.exe build\win32\taucs_config_tests.h

Linking with dgemm_ succedded

As you see the test was successful. I guess that by you not. Could you please post the lines that you see by you?</description>
		<content:encoded><![CDATA[<p>Sorry, I have misunderstood your problem. TAUCS first compiles test programs to take a decision whether BLAS names have underscore or not. This is what happens by me right now</p>
<p>        cl -c /nologo /O2 /W3 /D &#8220;WIN32&#8243; /MT     -DMACHTYPE_i386 -I src\\ -I build\\win32\\ -I external\\src\\    progs\\taucs_blas_underscore_test.c  /Foobj\\win32\\taucs_blas_underscore_test.obj taucs_blas_underscore_test.c<br />
progs\\taucs_blas_underscore_test.c(33) : warning C4996: &#8216;fopen&#8217;: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.<br />
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234): Siehe Deklaration von &#8216;fopen&#8217;<br />
        cl /nologo /MT /F64000000  /Feobj\\win32\\taucs_blas_underscore_test.exe  obj\\win32\\taucs_blas_underscore_test.obj external\\lib\\win32\\liblapack.lib external\\lib\\win32\\libf77blas.lib external\\lib\\win32\\libcblas.lib external\\lib\\win32\\libatlas.lib external\\lib\\win32\\libmetis.lib external\\lib\\win32\\vcf2c.lib<br />
        obj\\win32\\taucs_blas_underscore_test.exe build\win32\taucs_config_tests.h</p>
<p>Linking with dgemm_ succedded</p>
<p>As you see the test was successful. I guess that by you not. Could you please post the lines that you see by you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-229</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Mon, 25 Oct 2010 07:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-229</guid>
		<description>Hm, so I get this when it is trying to build the tests (i.e. taucs_blash_underscore_test), which is the first line called after running configure and then nmake. 

I do not have libtaucs.lib, this is what I am trying to compile, but I am not sure why it is first compiling the tests. 

I am using taucs_full, and have all the other lib files under /external/lib/win32. Thanks,</description>
		<content:encoded><![CDATA[<p>Hm, so I get this when it is trying to build the tests (i.e. taucs_blash_underscore_test), which is the first line called after running configure and then nmake. </p>
<p>I do not have libtaucs.lib, this is what I am trying to compile, but I am not sure why it is first compiling the tests. </p>
<p>I am using taucs_full, and have all the other lib files under /external/lib/win32. Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgenii Rudnyi</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-228</link>
		<dc:creator>Evgenii Rudnyi</dc:creator>
		<pubDate>Sun, 24 Oct 2010 17:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-228</guid>
		<description>This presumably happens when it compiles examples. Have you recieved libtaucs.lib in lib/win32? Have you used taucs_full.zip? It contains the libraries indeed. 

You could check it by going to step Using TAUCS from the command line.</description>
		<content:encoded><![CDATA[<p>This presumably happens when it compiles examples. Have you recieved libtaucs.lib in lib/win32? Have you used taucs_full.zip? It contains the libraries indeed. </p>
<p>You could check it by going to step Using TAUCS from the command line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://matrixprogramming.com/2008/12/taucs/comment-page-1#comment-227</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Sun, 24 Oct 2010 16:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://1.rudnyi.peterhost.ru/?p=357#comment-227</guid>
		<description>hi, i am having a problem following these instructions.  when I run nmake after configure, I get a linking error for dgemm_ and dgemm. these should exist in the blas libraries that come packaged with the full TAUCS distribution? Do I need to change any paths/environment variables from the defaults? 

thanks!</description>
		<content:encoded><![CDATA[<p>hi, i am having a problem following these instructions.  when I run nmake after configure, I get a linking error for dgemm_ and dgemm. these should exist in the blas libraries that come packaged with the full TAUCS distribution? Do I need to change any paths/environment variables from the defaults? </p>
<p>thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

