Posted by
eric ehlers on
URL: http://quantlib.414.s1.nabble.com/Cant-get-Quantlib-to-work-with-fedora-5-and-gcc-4-1-1-tp5020p5025.html
Hi Max
On 9/8/06, Max Giolitti <
[hidden email]> wrote:
> I get an error also with the simple program luigi suggests.
OK, so there's a problem with the configuration of your compiler.
This is unrelated to QuantLib or Boost.
> luigi.c:1:19: error: utility: No such file or directory
Luigi advised you to name the file test.cpp, not luigi.c as you have
above. I wonder if you're mistakenly picking up a C environment
rather than a C++ environment?
For me, using the test code suggested by Luigi, whether I name the
file test.cpp or test.c, it compiles fine using the "g++" command.
If, however, I compile instead with the "gcc" command, I get the
exact same error message as you:
$ gcc test.c
test.c:1:19: error: utility: No such file or directory
Please confirm - what result do you get when performing the test
exactly as described by Luigi - naming the file "test.cpp" (even
though the extension seems not to matter) and using the command "g++
test.cpp"?
(gcc is the compiler, and g++ is a front end which configures the
environment for C++).
My FC5 installation includes gcc version 4.1.0. On my machine the
location of the "utility" standard header file is:
/usr/include/c++/4.1.0/utility
That's a the standard system include directory, i.e. g++ is configured
such that "include <utility>" finds the above file automatically with
no need to specify the location of the file.
How does the above compare to your environment?
When I installed FC from the CDs, I chose to install the developer
tools, and all of the above was configured automatically. How did you
install gcc, did you follow a similar procedure, or did you start
without gcc and later install it manually?
Regards,
Eric