Quantcast

[Nanocubes-discuss] Build Problems

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Nanocubes-discuss] Build Problems

Alex Bongiovanni
I seem to be having some troubles building from the Master branch (I know it says 1.0 is more stable).  I'm building on RHEL6, which doesn't have a C++11 compiler on it, but I've manually updated to GCC4.7, so that shouldn't be an issue.

Everything compiles fine until I get errors about 'cerr' is not a member of 'std':

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’
make[2]: *** [DumpFile.o] Error 1

I'm more of a C guy than a C++ guy, but I did some Googling about and the advice was to include 'iostream', which does cause more stuff to build...and then throw errors for EVERYTHING as being undefined ('include' order problems I'm moderately sure).

Any suggestions?

--
Alex Bongiovanni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Nanocubes-discuss] Build Problems

laurolins
Hi Alex,

Just as a sanity check, can you see if the command

g++ -I. -std=c++11 -c DumpFile.cc

executed from the “src” folder works on your system? 

Can you also send the complete log of the errors you got as well as the boost version you are using?

Thanks,
Lauro






On Jan 14, 2014, at 1:37 PM, Alex Bongiovanni <[hidden email]> wrote:

I seem to be having some troubles building from the Master branch (I know it says 1.0 is more stable).  I'm building on RHEL6, which doesn't have a C++11 compiler on it, but I've manually updated to GCC4.7, so that shouldn't be an issue.

Everything compiles fine until I get errors about 'cerr' is not a member of 'std':

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’
make[2]: *** [DumpFile.o] Error 1

I'm more of a C guy than a C++ guy, but I did some Googling about and the advice was to include 'iostream', which does cause more stuff to build...and then throw errors for EVERYTHING as being undefined ('include' order problems I'm moderately sure).

Any suggestions?

--
Alex Bongiovanni
_______________________________________________
Nanocubes-discuss mailing list
[hidden email]
http://mailman.nanocubes.net/mailman/listinfo/nanocubes-discuss_mailman.nanocubes.net

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Nanocubes-discuss] Build Problems

Alex Bongiovanni
If I run that command I get:

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’

Which looks to be identical to the errors I get running 'make'.  I sent all the errors I got last time, I don't know what else I can give you (unless there is an actual log file I'm not aware of).  

It looks like my boost version is 1.41, so I'll try to update that (not sure that I'm allowed to though...).



On Tue, Jan 14, 2014 at 1:55 PM, Lauro Lins <[hidden email]> wrote:
Hi Alex,

Just as a sanity check, can you see if the command

g++ -I. -std=c++11 -c DumpFile.cc

executed from the “src” folder works on your system? 

Can you also send the complete log of the errors you got as well as the boost version you are using?

Thanks,
Lauro






On Jan 14, 2014, at 1:37 PM, Alex Bongiovanni <[hidden email]> wrote:

I seem to be having some troubles building from the Master branch (I know it says 1.0 is more stable).  I'm building on RHEL6, which doesn't have a C++11 compiler on it, but I've manually updated to GCC4.7, so that shouldn't be an issue.

Everything compiles fine until I get errors about 'cerr' is not a member of 'std':

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’
make[2]: *** [DumpFile.o] Error 1

I'm more of a C guy than a C++ guy, but I did some Googling about and the advice was to include 'iostream', which does cause more stuff to build...and then throw errors for EVERYTHING as being undefined ('include' order problems I'm moderately sure).

Any suggestions?

--
Alex Bongiovanni
_______________________________________________
Nanocubes-discuss mailing list
[hidden email]
http://mailman.nanocubes.net/mailman/listinfo/nanocubes-discuss_mailman.nanocubes.net


_______________________________________________
Nanocubes-discuss mailing list
[hidden email]
http://mailman.nanocubes.net/mailman/listinfo/nanocubes-discuss_mailman.nanocubes.net




--
Alex Bongiovanni
University of Maryland
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Nanocubes-discuss] Build Problems

Alex Bongiovanni
I fixed it.  I needed to include iostream in DumpFile.cc and set some flags for the linker (-lstdc++ -lm).  Thanks though!


On Tue, Jan 14, 2014 at 2:12 PM, Alex Bongiovanni <[hidden email]> wrote:
If I run that command I get:

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’

Which looks to be identical to the errors I get running 'make'.  I sent all the errors I got last time, I don't know what else I can give you (unless there is an actual log file I'm not aware of).  

It looks like my boost version is 1.41, so I'll try to update that (not sure that I'm allowed to though...).



On Tue, Jan 14, 2014 at 1:55 PM, Lauro Lins <[hidden email]> wrote:
Hi Alex,

Just as a sanity check, can you see if the command

g++ -I. -std=c++11 -c DumpFile.cc

executed from the “src” folder works on your system? 

Can you also send the complete log of the errors you got as well as the boost version you are using?

Thanks,
Lauro






On Jan 14, 2014, at 1:37 PM, Alex Bongiovanni <[hidden email]> wrote:

I seem to be having some troubles building from the Master branch (I know it says 1.0 is more stable).  I'm building on RHEL6, which doesn't have a C++11 compiler on it, but I've manually updated to GCC4.7, so that shouldn't be an issue.

Everything compiles fine until I get errors about 'cerr' is not a member of 'std':

DumpFile.cc: In static member function ‘static const dumpfile::FieldType& dumpfile::FieldTypesList::getFieldType(std::string)’:
DumpFile.cc:136:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In member function ‘dumpfile::Field* dumpfile::DumpFileDescription::addField(std::string, const dumpfile::FieldType&)’:
DumpFile.cc:213:9: error: ‘cerr’ is not a member of ‘std’
DumpFile.cc: In function ‘std::istream& dumpfile::operator>>(std::istream&, dumpfile::DumpFileDescription&)’:
DumpFile.cc:349:17: error: ‘cerr’ is not a member of ‘std’
make[2]: *** [DumpFile.o] Error 1

I'm more of a C guy than a C++ guy, but I did some Googling about and the advice was to include 'iostream', which does cause more stuff to build...and then throw errors for EVERYTHING as being undefined ('include' order problems I'm moderately sure).

Any suggestions?

--
Alex Bongiovanni
_______________________________________________
Nanocubes-discuss mailing list
[hidden email]
http://mailman.nanocubes.net/mailman/listinfo/nanocubes-discuss_mailman.nanocubes.net


_______________________________________________
Nanocubes-discuss mailing list
[hidden email]
http://mailman.nanocubes.net/mailman/listinfo/nanocubes-discuss_mailman.nanocubes.net




--
Alex Bongiovanni
University of Maryland



--
Alex Bongiovanni
University of Maryland
Loading...