Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing include statement in document.cc #2

Open
GoogleCodeExporter opened this issue Sep 3, 2015 · 2 comments
Open

missing include statement in document.cc #2

GoogleCodeExporter opened this issue Sep 3, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

the downloaded code does not compile (for me) unless you add, 
in file document.cc:
#include <fstream>


Original issue reported on code.google.com by [email protected] on 9 Oct 2007 at 11:23

@GoogleCodeExporter
Copy link
Author

I just downloaded the package and it seems that document.cc does include 
<fstream>
and there was no problem compiling the package.

Can you download and compile the package again and tell me if the problem 
persists ?
(After you download and open the tar file,
cd openhtmm-0.1
./configure
make
The executables will be in the src/ directory)

Thanks,
Amit.

Original comment by [email protected] on 10 Oct 2007 at 1:27

@GoogleCodeExporter
Copy link
Author

Re-downloaded and did ./configure and make; again got:
=======================================
In file included from htmm.h:22,
                 from EM.h:22,
                 from htmm_driver.cc:19:
document.h:54: `ifstream' was not declared in this scope
document.h:54: `in' was not declared in this scope
document.h:54: parse error before `*'
make[1]: *** [htmm_driver.o] Error 1
make[1]: Leaving directory `/home/devriesh/openhtmm-0.1/src'
make: *** [all-recursive] Error 1
====================================
however I fixed it by adding #include <fstream> to the document.h file, not the 
document.cc file, sorry. No idea why. Thanks for publishing the code, btw! 

Original comment by [email protected] on 12 Oct 2007 at 5:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant