Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ?
Hi,
I am trying to compile a package hdf-1.6.8 for openSUSE 11.0. But i think there is a problem when gcc 4.3 is used. The make fails giving errors like:
Quote:
In file included from H5IdComponent.cpp:21:
H5IdComponent.h:86: error: 'H5G_obj_t' does not name a type
Is this a cause for conflicts between gcc 3 and gcc 4. If so how do i rectify the same? I have compat-ltdc++ installed. Similar errors are sure to follow during the compilation process.
'cd hg5-1.6.8', './configure', 'make' runs with no errors
on a clean install of Suse 11.0,
using gcc43-4.3.1_20080507-6.1 .
There is a 'compat-libstdc++' for Suse 11.0, but it isn't
used, as all code in HG5 is c-code, no c++.
And there is no compiler connected to 'compat-libstdc++'.
There is no gcc-3 for Suse 11.0, unless you installed an
alternative one yourself.
I do not see, how you can talk about a gcc3, gcc4 conflict,
unless you are using some special configure options.
The only possible reason for an error I can think of, is if
you have another version of gcc-4.3 .? ?
.....
And there is no compiler connected to 'compat-libstdc++'.
What does this mean?
Quote:
There is no gcc-3 for Suse 11.0, unless you installed an alternative one yourself.
No i haven't installed gcc 3. I learnt that it is too troublesome and will cause dependency kinda problems with gcc 4. I have the gcc that you mentioned for openSUSE 11.0.
Quote:
I do not see, how you can talk about a gcc3, gcc4 conflict, unless you are using some special configure options.
I used the configure option:
Code:
--enable-cxx
I do not have a gcc conflict. I was just wondering if hdf5-1.6.8 is better off being compiled with gcc 3 as i did not have problems compiling hdf5-1.8.2.
Last edited by samrat_rao; 03-01-2009 at 01:04 PM.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,299
Rep:
I am very sorry, must have been sleepy ?
Now I found both the c++ code and the option --enable-cxx .
( And the --enable-fortran = 'Compile the fortran interface' too ! )
'./configure --enable-cxx' :
Works OK with 'g++-4.3' here, make sure, that 'gcc-c++' is installed,
and that 'g++' is present in /usr/bin/ .
This also works : './configure --enable-cxx CXX=g++34' :
( Fedora 10 has an equal 'glibc' and almost the same 'binutils'
as Suse 11, so the compiler works with no errors.)
:
The result in the hidden c++/.libs/ folder is 'libhdf5_cpp.a'
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.