473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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

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
3 3466
weaknessforcats
9,208 Expert Mod 8TB
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
MDR
14
Thank you very much for your help!!!
:D
May 31 '07 #3
AdrianH
1,251 Expert 1GB
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

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

Similar topics

2
by: jason | last post by:
Why is it that my index.asp file sitting in the following dir: ...wwwroot/EYS/new/hunter/356/ ....will only accept an include file with the following path: <!--#include...
5
by: Danny Anderson | last post by:
Hola! I am working on a program where I am including a library that came with my numerical methods textbook. The "util.h" simply includes a large number of files. I had to change the util.h...
4
by: Exits Funnel | last post by:
Hello, I'm slightly confused about when to use parens around #included files and when to use angle brackets. I understand (I think) that the difference is that the compiler will search in its...
4
by: nils | last post by:
Hi all, Recently I started migrating a gcc project to Visual Studio C++ (dotnet). The problem is that I cannot include any iostream header-file: #include <fstream> int main (int argc, char *...
2
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to...
9
by: nichas | last post by:
I tried to use #include<iostream> in visual C++ compiler but then it didnt work but i see this is the way it is being mentioned in C++ primer by lippman and lajoie.. where is the problem.. Do...
4
by: Travis | last post by:
So here's something I've always wondered. Typically if I want to use a string I simply using namespace std::string; string myString; But when do I actually need to include <string>. What...
4
by: saneman | last post by:
I have a folder 'app' containing a file 'main.cpp' and a subfolder 'types' (containing various header files). In main.cpp some header files from the subdir 'types' are included like: 1)...
11
by: gumboots | last post by:
Hi there guys, I've recently purchased "Sam's Teach Yourself C++ Fifth Edition" (About a week before the 6th edition came out) I'm trying to work through the book, but in trying to compile Hello...
6
by: Bernd Gaertner | last post by:
Dear experts, according to the standard, manipulators like noskipws are declared in the header ios (). But when I look at code that is around, I usually see #include<iomanipbeing used. What is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.