By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,515 Members | 1,848 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,515 IT Pros & Developers. It's quick & easy.

#include <util/ *.h> -> what's "util"?

P: 14
Hi

I'm seeking a code for a Standard Value Decomposition (SVD) of matrices and I found his one among others:
http://www.ics.uci.edu/~arvo/code/SVD.C
with the headers included.

But I don't know what is the "util/" instruction that comes with the headers in the include, I've tried to run the program (in Visual c++ 6) and is not working with or without the "util/" instruction, in both cases it doesn't load any header... because I've seen them always being included like
#include < *.h>


Any idea will be wellcome!
Thanx!!
May 30 '07 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Your reference web site had this:

Expand|Select|Wrap|Line Numbers
  1. #include <util/Math.h>
  2. #include <util/Vector.h>
  3. #include <util/Matrix.h>
  4. #include <util/SVD.h>
  5.  
This means the Math.h heade is located along a path from the present working directory(PWD). Something like PWD/util/Math.h.

It really doeesn't matter. You need to a) get the Math.h header file from you web site and copy it to your local machine. If you put it in the same folder as the VC 6.0 project file, you can just include it by:

Expand|Select|Wrap|Line Numbers
  1. #include "Math.h"
  2.  
Be aware that Windows file name are not case-sensitive so this Math.h will get confused with the C math.h. Probab;y you need to chnage the name of the Math.h header.

The above applies to all the headers that you include when you use coded from your web site.
May 30 '07 #2

P: 14
MDR
Thank you very much for your help!!!
:D
May 31 '07 #3

AdrianH
Expert 100+
P: 1,251
Your reference web site had this:

Expand|Select|Wrap|Line Numbers
  1. #include <util/Math.h>
  2. #include <util/Vector.h>
  3. #include <util/Matrix.h>
  4. #include <util/SVD.h>
  5.  
This means the Math.h heade is located along a path from the present working directory(PWD). Something like PWD/util/Math.h.
Actually, since it uses <> instead of "", it is not the PWD but the system include directories. It will ignore the PWD when searching for these files.


Adrian
May 31 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.