Message: Problem compiling electromagnetic/TestEm3 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Problem compiling electromagnetic/TestEm3 

Keywords: example problem
Forum: Documentation and Examples
Date: 30 Nov, 2002
From: Dvorak <Dvorak>

Why?Thanks.
I also get many warnings like "/usr/include/bits/mathcalls.h:332: warning: ISO C++ does not support `long
   long'" when compling any example.
                                            -Dvorak

Error Message:

src/Em3RunAction.cc: In member function `virtual void
   Em3RunAction::EndOfRunAction(const G4Run*)':
src/Em3RunAction.cc:208: no matching function for call to `
   std::basic_ostream<char, std::char_traits<char> >::setf(G4long&, const
   std::_Ios_Fmtflags&)'
/usr/include/c++/3.2/bits/ios_base.h:342: candidates are: std::_Ios_Fmtflags
   std::ios_base::setf(std::_Ios_Fmtflags)
/usr/include/c++/3.2/bits/ios_base.h:350:                 std::_Ios_Fmtflags
   std::ios_base::setf(std::_Ios_Fmtflags, std::_Ios_Fmtflags) <near match>
src/Em3RunAction.cc: In member function `void Em3RunAction::PrintDedxTables()':
src/Em3RunAction.cc:294: no matching function for call to `
   std::basic_ostream<char, std::char_traits<char> >::setf(G4long&, const
   std::_Ios_Fmtflags&)'
/usr/include/c++/3.2/bits/ios_base.h:342: candidates are: std::_Ios_Fmtflags
   std::ios_base::setf(std::_Ios_Fmtflags)
/usr/include/c++/3.2/bits/ios_base.h:350:                 std::_Ios_Fmtflags
   std::ios_base::setf(std::_Ios_Fmtflags, std::_Ios_Fmtflags) <near match>
make: *** [/home/Dvorak/tmp/Linux-g++/TestEm3/Em3RunAction.o] Error 1

uname -a: Linux h24-86-191-51 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

gcc -v: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Problem compiling electromagnetic/TestEm3   (Dvorak - 30 Nov, 2002)
 Add Message Add Message
to: "Problem compiling electromagnetic/TestEm3"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]